在Linux的内核态和用户态都有信号量,使用也不同,简单记录一下。 1> 内核信号量,由内核控制路径使用。内核信号量是struct semaphore类型的对象,它在中定义struct semaphore { atomic_t count; int sleepers; wait_queue_head Read More
posted @ 2019-03-19 16:47 靖意风 Views(622) Comments(0) Diggs(0)