Posted By:
karthik_Natarajan
Posted On:
Thursday, June 28, 2001 12:14 AM
Hi,
Instead of performing a sleep, you can perform a timed wait.
(i.e) Instead of Thread.sleep(900000)
use wait(900000).
For a graceful exit,
You can interrupt the thread when you close the application.
Handle the interrupted exception provided in wait.
Also you can use isInterrupted to check if the thread is interrupted.
Cheers,
Karthik