Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!news1.tnib.de!feed.news.tnib.de!news.tnib.de!texta.sil.at!newscore.univie.ac.at!aconews-feed.univie.ac.at!aconews.univie.ac.at!not-for-mail Newsgroups: comp.lang.java.programmer From: Andreas Leitgeb Subject: Re: System.exit References: <9d7fe75jrjv74ksjprrmdca7mp8hb0sflh@4ax.com> Reply-To: avl@logic.at User-Agent: slrn/pre0.9.9-111 (Linux) Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: Date: 14 Dec 2011 00:01:39 GMT Lines: 15 NNTP-Posting-Host: gamma.logic.tuwien.ac.at X-Trace: 1323820899 tunews.univie.ac.at 60386 128.130.175.3 X-Complaints-To: abuse@tuwien.ac.at Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:10714 Daniel Pitts wrote: > On 12/13/11 1:48 PM, Andreas Leitgeb wrote: >> Roedy Green wrote: >>> The docs say System.exit terminates the current JVM. But it seems >>> that when you have other threads executing, they keep on going. >> Are you sure you really do System.exit(), rather than just >> returning from the main() method? In the latter case, all >> those threads *not* marked as daemon threads keep running. > I would think even daemon threads would keep running until the last > non-daemon thread completed. You're right - I had actually intended to write: "... keep *the application* running." Don't know, where those two words went... ;)