With a bit of care to ensure that the two pointers do not overrun each other, the producer and the consumer can access the buffer concurrently with no race conditions.
英
美
- 这里要注意的一点就是这两个指针不会相互溢出,生产者和消费者能够并发访问目标缓冲区而不会引起竞态条件。