How to deal with timed out semaphore wait

前端 未结 0 1603
迷失自我
迷失自我 2020-12-06 13:56

I have two threads being synchronized with semaphores. Thread1 is waiting for a sem_post() by Thread2 using sem_timedwait(). But I fear that whenever timeout happens, the co

相关标签:
回答
  • 消灭零回复
提交回复
热议问题