private final void stop(){
  logMessage(thread.getName() + " received stop() request.");
  stopped=true;
  thread.interrupt();
}

private final void stop ( ) { logMessage ( thread . getName ( ) + " received stop() request." ) ; stopped = true ; thread . interrupt ( ) ; }
stops this thread . this method may return before this thread actually dies .
