473,813 Members | 2,745 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 11230
http://www.javaworld.com/javaworld/j...0413-four.html

dh************@ yahoo.com (Dhananjay Singh) wrote in message news:<a6******* *************** ***@posting.goo gle.com>...
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.goog le.com...
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.goog le.com...
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
10373
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, share your experience in using IDENTITY as PK .
125
14876
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 software giant such as Microsoft SQL Server, Oracle, and Sybase? Is PostgreSQL reliable enough to be used for high-end commercial application? Thanks
5
2415
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 Application.ExitThread in the same thread that it is running.
3
8886
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 { mySocketClass sss; ...
9
13463
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 Idea how to communicate between threads and access the threads message queue will be appriciated... -- Nadav http://www.ddevel.com
4
3200
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 interchangeable, or when should I use one over the other? TIA Charles
22
5659
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
1509
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 is wrong with this? Thank you! <html> <head> <script language="JavaScript"> <!--
669
26286
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 paper written on this subject. On the Expressive Power of Programming Languages, by Matthias Felleisen, 1990. http://www.ccs.neu.edu/home/cobbe/pl-seminar-jr/notes/2003-sep-26/expressive-slides.pdf
0
9734
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, well explore What is ONU, What Is Router, ONU & Routers main usage, and What is the difference between ONU and Router. Lets take a closer look ! Part I. Meaning of...
0
9607
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10669
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10140
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9224
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development projectplanning, coding, testing, and deploymentwithout human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7684
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupr who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
1
4358
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3885
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3030
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.