* How is it that the worker thread is left in a state where the interrupt status is set? * Why does the default implementation not clear the interrupt status before starting a new task?
Answers:
- He does not remain in an interrupted state.
- The implementation is in progress, but you are not looking at the right place.
From the Oracle library code:
if (runState < STOP && Thread.interrupted() && runState >= STOP) thread.interrupt();
As you can see, the interrupt status is cleared from the workflow until the executor disconnects.
source share