This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
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

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Threads and Synchronization
Bookmark "Native vs. Green Threads" Watch "Native vs. Green Threads" New topic

Native vs. Green Threads

Tetsuo Suzuki

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,
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
It depends on the JVM implementation for the platform you use.
Tetsuo Suzuki

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?
Peter den Haan
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
It's not a secret anymore!