Stephen Zander writes:
> In Private email with sbb, he informed me that the Sun developers
> don't believe native threads gives any great advantage over green
> threads in a uni-CPU environment.
I could not care less about SMI's opinion in this regard.
Green threads inhibit the Invocation API, as I learned
at some expense recently. End of story. I have been using
Japhar (phtreads) ever since, much to my satisfaction,
and have happily ignored JDK.
> Obviously, that would not be true on a multi-CPU system.
Quoting Oaks/Wong, "Java Threads", ORA 1997:
"At the time of this writing, all implementations of
the Java virtual machine are not themselves written
as a threaded program, which means that even if you
have multiple processors in your computer, the
Java virtual machine only uses one processor at a
time."
I wouldn't be surprised if this is still true.
Interesting. I have to check on Japhar for this.
Further: JNI Specs, May 1997, p. 80:
"JDK 1.1.2 does not support cerating more than one
VM in a single process". If you are contemplating
having your app running two or more JVM's, think
again. Haven't seen a change mentioned for JDK 1.2
or JDK 1.1.6, but maybe I missed that.
Japhar supports more than one VM per process, but
I have not tried that (yet).
There was an announcement for a release of 1.1.6
with native pthreads supposed to show up here:
http://www.gr.opengroup.org/java/jdk/linux
Going to check later...
b.