This J2ME tip demonstrates the method of terminating a thread by signalling. This is achieved by changing the value of an instance variable that the thread periodically inspects. For example using a construction given below:

 public void run( ) {
  while (!requestedToStop)
  
  // Do whatever is required
  
  }
}