Path: csiph.com!optima2.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!1.eu.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!newsfeed.straub-nv.de!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Martin Gregorie Newsgroups: comp.lang.java.programmer Subject: Re: javax.swing.Timer blocking program termination Date: Wed, 15 Jul 2015 18:46:57 +0000 (UTC) Organization: A noiseless patient Spider Lines: 23 Message-ID: References: <529193b4-e5d6-4acc-8bbd-588c56aa79ad@googlegroups.com> <8314ba27-cbb9-49ae-a4b5-9e8401d0a747@googlegroups.com> <59qaqa1k1mjipouiaq5jq5aqnr191bk8n1@4ax.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Wed, 15 Jul 2015 18:46:57 +0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="e5160e2be48f1ea550cf61512446f525"; logging-data="14728"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+2m/8Gsfow3WoDNnwKobfP6KT/X7yT6cU=" User-Agent: Pan/0.139 (Sexual Chocolate; GIT bf56508 git://git.gnome.org/pan2) Cancel-Lock: sha1:7DzcyvoLi/bHxrMtzNlXgJGMkKM= Xref: csiph.com comp.lang.java.programmer:32037 On Wed, 15 Jul 2015 08:33:37 -0400, Jeff Higgins wrote: > On 07/14/2015 04:14 PM, Eric Sosman wrote: >> >> Evil or not, here I come. > > Your discussion prompted some web searching - thanks. > A couple of articles I found interesting. > > Exiting the JVM http://blog.joda.org/2014/02/exiting-jvm.html > > Know the JVM Series – 2 – Shutdown Hooks > http://blog.yohanliyanage.com/2010/10/know-the-jvm-2-shutdown-hooks/ Thanks for posting that. The shutdown hooks look a lot like C's atexit() function: almost identical in fact, since they have the same limitations (not triggered by SIGKILL). -- martin@ | Martin Gregorie gregorie. | Essex, UK org |