File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Threads and Synchronization and the fly likes java threads Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Threads and Synchronization
Bookmark "java threads" Watch "java threads" New topic

java threads

jignesh soni
Ranch Hand

Joined: Dec 10, 2007
Posts: 150
which are the two threads always running in java ?
Norm Radder
Ranch Hand

Joined: Aug 10, 2005
Posts: 692
I give up.
Is it the white one and the black one?
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42965
Here's some code that will come in handy if you want to investigate what threads are active at any given time.
Nitesh Kant

Joined: Feb 25, 2007
Posts: 1638

Alternatively, take a thread dump(CTRL-Break(Win systems) or CTRL-/(Unix)) and find it for yourself how many threads are alive and they are in what states!!

apigee, a better way to API!
I agree. Here's the link:
subject: java threads
It's not a secret anymore!