在内核中可以使用互斥锁来实现信号量行为。
Mutexes are available in the kernel as a way to accomplish semaphore behavior.
同样,rt - mutexes对优先级继承协议扩展了健壮的互斥锁,后者允许rtJVM通过pthread库依赖优先级继承行为。
Also, rt-mutexes extend the priority-inheritance protocol to robust mutexes, which allows the rt JVM to rely on priority-inheritance behaviour via the pthread library.
这种行为称为“互斥”,也就是一个选择排斥另一个选择。
This behavior is called mutual exclusion, as the selection of one excludes the selection of the other.
如果尝试解除锁定的互斥锁未锁定,则会产生不确定的行为。
Attempting to unlock an unlocked mutex results in undefined behavior.
尝试解除由其他线程锁定的互斥锁会产生不确定的行为。
Attempting to unlock a mutex locked by a different thread results in undefined behavior.
互斥需将细粒度的原子行为组合为粗粒度的复合行为,再将复合行为原子化。
Mutual exclusion involves combining fine-grained atomic actions into coarse-grained actions and arranging to make these composite actions atomic.
互斥需将细粒度的原子行为组合为粗粒度的复合行为,再将复合行为原子化。
Mutual exclusion involves combining fine-grained atomic actions into coarse-grained actions and arranging to make these composite actions atomic.
应用推荐