本例中的这个代码更改没有涉及任何同步,因此也没有产生应用程序的锁定行为问题。
The code change in this example did not involve any synchronization and so there are no issues with the locking behavior of the application.
图1中的第二条时间线显示了发生优先级继承时第一条时间线的锁定行为的变化情况。
The second timeline in Figure 1 shows how the locking behavior of the first timeline changes when priority inheritance is in effect.
当多个线程需要同时获取同一个锁的时候,锁定策略常常会影响执行行为。
A locking policy is intended to affect execution behavior when more than one thread wants to acquire the same lock simultaneously.
应用推荐