public static void stop(Thread thread){
  if (thread != null) {
    thread.interrupt();
  }
}

public static void stop ( Thread thread ) { if ( thread != null ) { thread . interrupt ( ) ; } }
stop monitoring the specified thread .
