Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Multithreading in Java  RSS feed

 
Shital Supase
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
when multiple threads are created in a java program, will all the threads be passed to the operating system or just one thread ?
 
Henry Wong
author
Sheriff
Posts: 22832
119
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Shital Supase:
when multiple threads are created in a java program, will all the threads be passed to the operating system or just one thread ?


Depends on the JVM -- there may be a few older JVMs that still do user level threading.

However, all modern JVMs today will use the underlying OS threading system. This means that it is the OS that manage the threads running in the JVM.

Henry
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!