Subscribe to RSS Feed
Twitter
HIRE ME! home  archives  about  blogroll

Shutdown hooks

10 May 2004

Now, that is another nice thing to check out : shutdown hooks.

Shutdown Hooks by David Walend — A shutdown hook is a Thread designed to be run after a program receives a signal to exit, but before daemon threads stop, finalizers run, and the JVM goes poof. Shutdown hooks are great for clearing dirty caches, closing out open resources, and announcing this shutdown to other processes.

… there must be some downsides to this hooks, no? Mmm, needs a bit more investigation I guess. ;)

blog comments powered by Disqus