Hamilton Verissimo de Oliveira (Engenharia - SPO) wrote:
The shutdownNow on the other hand relies on the Thread.interrupt call to
force an InterruptedException. The fact is that the thread must be on a
blocking operation to InterruptedException be throwed. So some of the
threads are disposed after calling shutdownNow. I'll contact Doug Lea
directly to handle those issues.

Thats desired behaviour. The "Work" loops should look something like


void run()
{
  while( !Thread.interrupted() )
  {
     try { doWork(); }
     catch( final InterruptedException ie ) {}
  }
}



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Apache Excalibur Project -- URL: http://excalibur.apache.org/



Reply via email to