O'Reilly logo
  • Peng Zhang thinks this is interesting:

Just as task code should not make assumptions about what interruption means to its executing thread, cancellation code should not make assumptions about the interruption policy of arbitrary threads. A thread should be interrupted only by its owner; the owner can encapsulate knowledge of the thread's interruption policy in an appropriate cancellation mechanism such as a shutdown method.

From

Cover of Java Concurrency in Practice

Note

The attitude of “cancellation code” towards interruption, but what does cancellation code refer to?