生产者中的put操作会在没有空间可用时阻塞,而消费者的take操作会在队列中没有任何东西时阻塞。
The put operation in the producer will block when there is no space available and the take operation in the consumer will block when there is nothing in the queue.
生产者中的put操作会在没有空间可用时阻塞,而消费者的take操作会在队列中没有任何东西时阻塞。
The put operation in the producer will block when there is no space available and the take operation in the consumer will block when there is nothing in the queue.
应用推荐