private void interruptWorkers(){
  final ReentrantLock mainLock=this.mainLock;
  mainLock.lock();
  try {
    for (    Worker w : workers)     w.interruptIfStarted();
  }
  finally {
    mainLock.unlock();
  }
}

private void interruptWorkers ( ) { final ReentrantLock mainLock = this . mainLock ; mainLock . lock ( ) ; try { for ( Worker w : workers ) w . interruptIfStarted ( ) ; } finally { mainLock . unlock ( ) ; } }
interrupts all threads , even if active . ignores securityexceptions ( in which case some threads may remain uninterrupted ) .
