... 诊断状态字 diagnosis status word 中断状态 break state; interrupt phase; interrupt state; interrupt status; interruptable state; interruption status; outage state; relay state 中断状态字 interrupt status word; interruption status word ...
However, even noncancelable tasks should attempt to preserve the interrupted status in case code higher up on the call stack wants to act on the interruption after the noncancelable task completes.
Methods that do not block but that still may take a long time to execute can respect requests for interruption by polling the interrupted status and return early if interrupted.
对于中断请求,不阻塞但是仍然要花较长时间执行的方法可以轮询中断状态,并在被中断的时候提前返回。
3
To be a good citizen, it restores the interrupted status in a finally block after it is finished, so as not to deprive callers of the interruption request.