473,386 Members | 1,745 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

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 11185
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

112
by: Andy | last post by:
Hi All! We are doing new development for SQL Server 2000 and also moving from SQL 7.0 to SQL Server 2000. What are cons and pros for using IDENTITY property as PK in SQL SERVER 2000? Please,...
125
by: Sarah Tanembaum | last post by:
Beside its an opensource and supported by community, what's the fundamental differences between PostgreSQL and those high-price commercial database (and some are bloated such as Oracle) from...
5
by: Franco, Gustavo | last post by:
Hi, I have a question, and please I need a answer. How can I finalize a thread running with Application.Run (I need the message loop!!!) without call Thread.Abort?. I want to call...
3
by: David Logan | last post by:
I have an application using sockets, and it uses the asynchronous method for receiving (and others, but receiving is the basic problem.) In short, I want: class someClass: Form {...
9
by: Nadav | last post by:
Hi, I am tring to pass messages between threads, using the good old C++ I would call the GetMessage/PostThreadMessage APIs, Now, I am using C# and i can't find any equivalenty for these calls, any...
4
by: Charles Law | last post by:
I've been using monitors a bit lately (some of you may have heard ;-) ) and then up pop Manual and AutoResetEvents , and they look for all the world like the same thing. Are they...
22
by: vietor.liu | last post by:
is this? int hashpjw(char* str,int size) { unsigned long h=0,g; for(unsigned char *p=(unsigned char*)str;*p;++p) { h=(h<<4)+*p; if(g=(h&0xf0000000)) {
9
by: killermookie | last post by:
I'm not a javascripter so this is slightly unfamiliar to me. What I'm trying to do is that if someone clicks the radio button for Other, then the text input for other will become enabled. What...
669
by: Xah Lee | last post by:
in March, i posted a essay “What is Expressiveness in a Computer Language”, archived at: http://xahlee.org/perl-python/what_is_expresiveness.html I was informed then that there is a academic...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.