void produce() { P(&empty); printf("("); V(&fill); } void consume() { P(&fill); printf(")"); V(&empty); }
<
>
_
<><_
><>_
P(<)