public synchronized void stop ( ) { try { this . kill ( ) ; } finally { this . killed = false ; this . restartCondition . setUseless ( false ) ; this . restartCondition . setActive ( false ) ; } }
stops the executing thread but does not kill the thread . It can be restarted