Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Number of Threads

 
Manoja
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In a java program such as "Hello World", how many Threads minimum works ?
What are those threads ?
 
Joel McNary
Bartender
Posts: 1840
Eclipse IDE Java Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is only 1 Thread (generally named "main") that handles a simple "Hello, World" program.

(Of course, the JVM may use different threads for its functions, but there is only the one Java thread).
 
Manoja
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can i know what are the Threads JVM use for this and how they are used ?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic