Why does changing the order of semaphores matter in the Producer/Consumer Problem?

后端 未结 0 1586
礼貌的吻别
礼貌的吻别 2021-01-20 14:08

So I know how to code the Producer/Consumer problem, but I do not know why it works and why rearranging the code makes it not work.

int sizeOfBuffer = 1000;
s         


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