一般用例将以许多小消息结束,当涉及到远程接口时,端到端通信开销会对响应时间和吞吐量造成很大的影响。
The average use case will end up with lots of small messages, and the end-to-end communication overhead when remote interfaces were involved had a major impact on response time and throughput.
既然锁定用于线程间通信,那么取消锁定会开启临界区,而释放锁定会结束临界区,这是行得通的。
Since locks are used for interthread communication, it makes sense that taking out a lock would start a critical region and that releasing the lock would end the critical region.
标记是一个通信通道的开始或结束。
应用推荐