Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Multithreading in Java

 
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: 22542
109
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!