[4918] in java-interest
FWD:threads and native methods...
daemon@ATHENA.MIT.EDU (Ahmed Abd El-Hady)
Mon Jan 22 15:48:30 1996
Date: Sun, 22 Jan 1995 16:50:56 -0700
From: Ahmed Abd El-Hady <ahady@idsc.gov.eg>
To: java-interest@java.sun.com
Hello All,
Can some one help answering this question.
> Question about threads and native methods...
>
> ----------------------------------------------------------------------
>
> From: mesozoic@mit.edu (Sean Doyle)
> Subject: Question about threads and native methods...
> Date: Fri, 19 Jan 1996 10:33:52 +0100
> Hi..
>
> This is a question based on a broad foundation of ignorance :-)
>
> If there are multiple threads in a Java class and one of them invokes a
>native method, will the Java thread scheduler be able to preempt the thread
> containing the native method call? Or.. when the thread of execution
> escapes from the Java virtual machine is this undefined behavior?
>
> The basic design problem I have is that I need to call native methods from
> a Java application to address hardware (things like the serial port) and
> that I need to choose between a large multiply-threaded application with
> many native method calls or a 'federation' of java applications that
> communicate via sockets which each contain seperate native method calls
> (which just passes the management of these threads down to the OS).
>
> Thanks
>
> Sean
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Sean Doyle mesozoic@mit.edu 617-253-3533 , (fax) 617-258-8682
>
TIA
Ahmed
-
This message was sent to the java-interest mailing list
Info: send 'help' to java-interest-request@java.sun.com