If Not Blocked 如果不加以阻断
So, if a thread is blocked in an I/O operation on a channel, another thread can close that channel.
所以,如果一个线程在某条通道的 I/O 操作上阻塞时,那么另一个线程可以将这条通道关闭。
Other readers may be blocked if you are in a transaction, which means that they will hang until the transaction is finished.
如果您位于事务中,则其他读取器可能受阻,这意味着它们将挂起直到事务完成。
This scenario could be a disaster if the blocked thread is a high-priority task (a hazard known as priority inversion).
如果阻塞的线程是高优先级的任务,那么该方案可能造成非常不好的结果(称为 优先级倒置的危险)。
应用推荐