Is it possible a lock wouldn't release in a while loop

前端 未结 0 1979
伪装坚强ぢ
伪装坚强ぢ 2021-01-15 20:46

I have two threads using a common semaphore to conduct some processing. What I noticed is Thread 1 appears to hog the semaphore, and thread 2 is never able to acquire it. My

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