The system used a shared buffer that would accept blocks of characters from a measurement process P1 and forward blocks of data to the output process, P2. The designer has written the following routines, one for P1 and one for P2.
full = 0
max = buffer size
p1Generate( ) p2Transmit( )