By ranvijay1210
via geekexplains.blogspot.com
Published: Jun 21 2008 / 12:32
Read the article to get a good understanding of Shutdown Hooks and their working in Java. What are Shutdown Hooks? When do they execute? How reliable are they? Caution to be taken while writing them?....
Comments
htowninsomniac replied ago:
I only once had to deal with shutdown hooks, and that was on a tablet PC where a GUI shutdown hook didn't complete when System.exit() was called. But it's definitely good knowing about this mechanism. Thanks for the article.
Perhaps you could do a follow-up and explain what shutdown hooks Java already installs. Depending on the platform, there are some that get pre-registered.
ranvijay1210 replied ago:
I've not written the article myself... I just found it an interesting one and hence posted it here anticipating that others may also find it interesting and useful. Anyway, I hope the author of the article eventually reads the comment to follow up with the article on pre-registered hooks. Or may be I can post a comment on that site itself to ask that.
rohitsingh1294 replied ago:
I found an interesting update on this article - Common Questions on Shutdown Hooks in Java (http://geekexplains.blogspot.com/2008/06/common-questions-on-shutdown-hooks-in.html).
Though, I personally didn't find them so common :-) A nice follow-up of the original article I would say.
Voters For This Link (16)
Voters Against This Link (0)