作者:彼岸花2011的冬天_290 | 来源:互联网 | 2023-05-17 12:36
AretherelocksinLinuxwherethewaitingqueueisFIFO?Thisseemslikesuchanobviousthing,and
Are there locks in Linux where the waiting queue is FIFO? This seems like such an obvious thing, and yet I just discovered that pthread mutexes aren't FIFO, and semaphores apparently aren't FIFO either (I'm working on kernel 2.4 (homework))...
在Linux中有等待队列是FIFO的锁吗?这看起来很明显,但我刚发现pthread互斥量不是FIFO,信号量显然也不是FIFO(我正在研究内核2.4(家庭作业))...
Does Linux have a lock with FIFO waiting queue, or is there an easy way to make one with existing mechanisms?
Linux是否具有FIFO等待队列的锁定,或者是否有一种简单的方法来使用现有机制?
3 个解决方案