469,339 Members | 8,437 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,339 developers. It's quick & easy.

What is Green Thread

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"
Jul 17 '05 #1
5 10789
http://www.javaworld.com/javaworld/j...0413-four.html

dh************@yahoo.com (Dhananjay Singh) wrote in message news:<a6*************************@posting.google.c om>...
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"

Jul 17 '05 #2
Thanks Bharat,
The Javaworld article was good. But still I require a detailed
article. If someone knows kindly let me know

(Dhananjay Singh)
Jul 17 '05 #3

"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"


They are a thing from the past, forget about them.

Silvio Bierman
Jul 17 '05 #4
Dear Silvio,

If you forget your past, you can't make your future. :)

Any way, one of my client is using some network security application
written in Java & C++. They are having some problem with Green
Threads. We've to identify it and fix it. We can't say them to forget
the Green Threads coz that is old technology.

Is any one have some Idea about Green Threads?

(Dhananjay Singh)
Jul 17 '05 #5

"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"

Jul 17 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by Franco, Gustavo | last post: by
3 posts views Thread by David Logan | last post: by
22 posts views Thread by vietor.liu | last post: by
9 posts views Thread by killermookie | last post: by
669 posts views Thread by Xah Lee | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by suresh191 | last post: by
reply views Thread by Purva khokhar | last post: by
1 post views Thread by haryvincent176 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.