![]() |
![]() |
||||
At line 13 added 3 lines. |
!Important Notes |
* If you start a thread using this method, remember to call thread.setDaemon(true), and ideally provide a way to ensure the thread stops running when your application is restarted. If this is not done, the old threads will not stop, and a new thread will start each time the application starts, causing havoc with your maintenance (imagine 20 threads all deciding to perform a maintenance task at midday, when you think there is only 1 running!) |