Title: RE: Solaris Native thread problem

> From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
>...
> In a Java app that does not contain any JNI calls, there
> should be *no*
> changes required in the app code itself to switch between
> native threads
> and green threads (or any other undelrying thread model, for that
> matter).  It is up to the JVM to provide an environment that supports
> the thread semantics required by the Java API.  As long as

But the semantics aren't fully defined.  For example, preemptive and non-preemptive JVMs exist.  While there are easy ways to ensure that your code behaves properly with both, you can't always ignore the difference.

>...
> Craig McClanahan

Problems may occur when you are relying on Threads waking up and going to sleep in a predictable order

Andy Bailey

Reply via email to