File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes Number of Threads Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Number of Threads" Watch "Number of Threads" New topic
Author

Number of Threads

Manoja
Greenhorn

Joined: Nov 10, 2004
Posts: 6
In a java program such as "Hello World", how many Threads minimum works ?
What are those threads ?
Joel McNary
Bartender

Joined: Aug 20, 2001
Posts: 1821

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).


Piscis Babelis est parvus, flavus, et hiridicus, et est probabiliter insolitissima raritas in toto mundo.
Manoja
Greenhorn

Joined: Nov 10, 2004
Posts: 6
Can i know what are the Threads JVM use for this and how they are used ?
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Number of Threads