wood burning stoves 2.0*
The moose likes Threads and Synchronization and the fly likes Regarding removeShutdownHook and addShutdownHook Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Threads and Synchronization
Bookmark "Regarding removeShutdownHook and addShutdownHook" Watch "Regarding removeShutdownHook and addShutdownHook" New topic

Regarding removeShutdownHook and addShutdownHook

santhosh kumar vk
Ranch Hand

Joined: Aug 25, 2009
Posts: 144

Could you please tell me what the use of Runtime.getRuntime().removeShutdownHook() and Runtime.getRuntime().addShutdownHook().

Santhosh Kumar VK
Martin Vajsar

Joined: Aug 22, 2010
Posts: 3606

The javadoc entry for addShutdownHook is actually quite detailed: java.lang.Runtime#addShutdownHook(java.lang.Thread).

I'd suggest to read that first and then ask specific questions, if needed.
I agree. Here's the link: http://aspose.com/file-tools
subject: Regarding removeShutdownHook and addShutdownHook
Similar Threads
How to create final action when closing brutally java app
Killing process spawned by Runtime.exec()
DefaultMessageListenerContainer not getting started
NX: (Contractors) server shutdown and file close
Threads Synchronization Issue