[1775] in java-interest
Re: Re: Learner's questions
daemon@ATHENA.MIT.EDU (Arthur van Hoff)
Sat Sep 16 22:08:30 1995
Date: Fri, 15 Sep 1995 10:53:58 -0800 (PDT)
From: Arthur van Hoff <Arthur.Vanhoff@Eng.Sun.COM>
Reply-To: Arthur van Hoff <Arthur.Vanhoff@Eng.Sun.COM>
To: <min@oti.on.ca>
Cc: java-interest@java.Eng.Sun.COM
Hi Min,
> By OS event, I really mean system level objects(mutex,semaphore,event,...),
> i.e. provided by OS. So I could make do things like non-blocking system
> calls. Also if I have two Java processes running. I could let them share
> these objects.
>
> Because I don't have access to the source code, I can not really see the
> Thread model and implementation used by Java.
There are no blocking system calls in Java. We made sure that if you thread
would block another one will automatically start running. We can't give you
direct access to OS functionalitly for portability and security reasons.
By the way, our threads are fully preemptively scheduled but on Solaris they
don't time-slice. That means that the highest priority thread will continue
running until it blocks or a higher priority thread becomes runnable.
Have fun,
Arthur van Hoff
-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com