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.

From

Cover of Java Concurrency in Practice

Note

What does it mean?