File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

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
I agree. Here's the link:
subject: Native vs. Green Threads
It's not a secret anymore!