O'Reilly logo
  • Cui Wen thinks this is interesting:

Setting the interrupted status too early could result in an infinite loop, because most interruptible blocking methods check the interrupted status on entry and throw InterruptedException immediately if it is set.


Cover of Java Concurrency in Practice


What does it mean?