阅读背景:

一个消费者和两个生产者中的任何一个

来源:互联网 

I am having trouble writing this C code where I need to have two producers with their own buffers. and then one consumer which consumes one item from either buffer and only waits if both buffers are empty. I know how to write the code for if the consumer waits if either producer buffer is empty,I am having trouble writing this C code where I




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: