处于等待状态的一个进程,该进程在一个环形缓冲区或信号灯处等待,直到另一个进程发出释放。
A process in the wait state. A process waits on a ring buffer or semaphore, unable to change state and resume execution until the ring buffer or.
消费者线程从缓冲区中获得产品,然后释放缓冲区。当生产者线程生产产品时,如果缓冲区已满,那么生产者线程必须等待消费者线程释放出一个空缓冲区。
When the producer thread production product, if the buffer is full, then the producer thread must wait for the release of the consumer thread to an empty buffer.
应用推荐