aspose file tools*
The moose likes Threads and Synchronization and the fly likes Native vs. Green Threads Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Threads and Synchronization
Bookmark "Native vs. Green Threads" Watch "Native vs. Green Threads" New topic
Author

Native vs. Green Threads

Tetsuo Suzuki
Greenhorn

Joined: Feb 21, 2002
Posts: 22
When does java use native threads and when does it use green threads? Does it depend on what platform a person is using? Or their compiler?
Thanks in advance,
Tetsuo!
Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
It depends on the JVM implementation for the platform you use.
Regards,
G´┐Żnther.
http://www.javacoding.net
Tetsuo Suzuki
Greenhorn

Joined: Feb 21, 2002
Posts: 22
Does anyone know if the Windows JVM uses Native threads? Also, if I get a native compiler for java, will it then use Native threads for sure?
Thanks,
Tetsuo!
Peter den Haan
author
Ranch Hand

Joined: Apr 20, 2000
Posts: 3252
Windows JVMs use native threads, AFAIK. A native compiler would be likely to use native threads as well.
- Peter
 
wood burning stoves
 
subject: Native vs. Green Threads