aspose file tools
The moose likes Threads and Synchronization and the fly likes the main thread and 'other' ones. Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Threads and Synchronization
Reply Bookmark "the main thread and Watch "the main thread and New topic
Author

the main thread and 'other' ones.

Mike Curwen
Ranch Hand

Joined: Feb 20, 2001
Posts: 3695

I'm just confirming something with y'all.

If I have something like:
the 'main' thread will conclude very swiftly, but the JVM will not exit (and so my program will still be 'running'), because of the thread started by MyThreadedClass. Or does the 'main' thread hang around until something finally kills the _me thread ?
Jim Yingst
Wanderer
Sheriff

Joined: Jan 30, 2000
Posts: 18652
The main thread will end, but the JVM won't exit until all non-daemon threads have ended.


"I'm not back." - Bill Harding, Twister
 
 
subject: the main thread and 'other' ones.
 
Threads others viewed
Quick Coding Style Question
Casting problem
Inner Class - INSTANCE
Static void main
Bastard child of singleton ?
developer file tools