File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Threads and Synchronization
Bookmark "Regarding removeShutdownHook and addShutdownHook" Watch "Regarding removeShutdownHook and addShutdownHook" New topic
Author

Regarding removeShutdownHook and addShutdownHook

santhosh kumar vk
Ranch Hand

Joined: Aug 25, 2009
Posts: 146
Hi,

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

Thanks,
Santhosh Kumar VK
Martin Vajsar
Sheriff

Joined: Aug 22, 2010
Posts: 3611
    
  60

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