Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Native vs. Green Threads

 
Tetsuo Suzuki
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It depends on the JVM implementation for the platform you use.
Regards,
G´┐Żnther.
http://www.javacoding.net
 
Tetsuo Suzuki
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3252
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Windows JVMs use native threads, AFAIK. A native compiler would be likely to use native threads as well.
- Peter
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic