aspose file tools*
The moose likes Threads and Synchronization and the fly likes Green and Native Threads Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Threads and Synchronization
Bookmark "Green and Native Threads" Watch "Green and Native Threads" New topic
Author

Green and Native Threads

gunjan
Ranch Hand

Joined: Jan 28, 2000
Posts: 33
Can anyone please explain the difference between the two types: green threads and native threads
Any help appreciated.
GUnjan


Regards<BR>Gunjan
Pawel Veselov
Ranch Hand

Joined: Jan 14, 1999
Posts: 165
Green threads is thread mechanism implemented in JVM itself. It is blind and can run on any OS, so actually all threads are run in one native thread and scheduling is up to JVM.
This is disadvantageously for SMP systems, since only one processor can serve Java application.
Native threads is a mechanism based on OS threading mechanism. This allows to use features of hardware and OS. For example,there is IBM's JDK for AIX that supports native threads. The perfomance of applications can be highly imploved by this.

------------------
With best of best regards, Pawel S. Veselov ( aka Black Angel )

With best of best regards, Pawel S. Veselov ( aka Black Angel )
John Bateman
Ranch Hand

Joined: Mar 09, 2000
Posts: 320
I learned something new today. Thanks!
I was using the BlackDown 1.1.8 "JDK" on Linux with Jserv and Jonas and I could never figure out what the green/native thread diffrence is.
Man I love helpful message bases.


SOURCE CODE should be SURROUNDED by "code" tags.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Green and Native Threads