优先级互斥向量
优先级互斥向量
VxWorks的互斥锁在创建的时候,可以用一个布尔参数表示是否要优先级继承。
A POSIX API for creating a pthread_mutex lets the mutex implement the priority-inheritance protocol.用于创建pthread _ mutex的POSIX API使用互斥锁来实现优先级继承协议。
With the priority ceiling Protocol (PCP) method each mutex has a defined priority ceiling, set to that of the highest priority task which USES the mutex.使用优先级天花板协议(PCP),每个互斥锁都有最大优先级,设为需要这个锁的任务的优先级的最大值。