[英]What happens if 5 processes waiting in a semphore?
Im using semaphore.h, what is happening if 5 child processes waiting on sem_wait
while another child process unlocking the semaphore sem_post
? 我使用semaphore.h,如果5个子进程在
sem_wait
上sem_wait
而另一个子进程解锁信号量sem_post
什么? Are they all going to be unlocked? 它们都将被解锁吗?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.