472,805 Members | 1,099 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,805 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 11129
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...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 2 August 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: erikbower65 | last post by:
Using CodiumAI's pr-agent is simple and powerful. Follow these steps: 1. Install CodiumAI CLI: Ensure Node.js is installed, then run 'npm install -g codiumai' in the terminal. 2. Connect to...
0
by: kcodez | last post by:
As a H5 game development enthusiast, I recently wrote a very interesting little game - Toy Claw ((http://claw.kjeek.com/))。Here I will summarize and share the development experience here, and hope it...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Sept 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
14
DJRhino1175
by: DJRhino1175 | last post by:
When I run this code I get an error, its Run-time error# 424 Object required...This is my first attempt at doing something like this. I test the entire code and it worked until I added this - If...
0
by: Rina0 | last post by:
I am looking for a Python code to find the longest common subsequence of two strings. I found this blog post that describes the length of longest common subsequence problem and provides a solution in...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
0
by: Mushico | last post by:
How to calculate date of retirement from date of birth
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...

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.