"Dhananjay Singh" <dh************@yahoo.com> wrote in message
news:a6*************************@posting.google.co m...
Dear All,
There are lot of questions in mind regarding Green Thread.
I'd like to know what is green thread? What is the difference between
Green Thread and Native Thread? On linux platform which one is good
and why "java -green" command is not working on the linux (using
j2sdk1.4.2_05 for linux).
And above all of these question .........
Why java.sun.com doesn't have any good article for green threads. if u
know kindly provide me the URL.
An early response is requested. Thanks in advance.
(Dhananjay Singh)
"Cut Me And I'll Bleed Java"
JDK 1.4 no longer contains the Classic JVM which is required to run Green
Threads. If you want to use green threads you'll have to drop back to an
older version and run with the -classic option
Links:
http://www.mail-archive.com/ja******.../msg14899.html http://www.codenotes.com/articles/ar...?articleID=389 http://search390.techtarget.com/orig...894555,00.html
In particular this bit might be relevent to you since you mention the app
uses both Java and C++ (JNI?)
"A Java thread supported under green threads cannot call directly into a
non-green-thread enabled library because the latter may itself call a system
call that would cause the underlying kernel thread to wait, thus suspending
execution of the entire Java virtual machine"