

This is allowed to happen when the buffer is not empty and the consumer has sent the more message:outThe second deals with sending output to the consumer.

#Communicating sequential processes mod
This is allowed to happen, when the producer has sent something and there is space available in the buffer:inThe first deals with receiving input from the producer.Communicating Sequential Processes (CSP) COP 4020 - Summer 2006 Utilizes 2 counters: One for recording number of items it has received, one for recording number of items it has sent.The buffer has a size of 10 (0 through 9 spaces).When waiting for input in a guard, the process does not block! The guard simply evaluates as neither true nor false until it receives the input (it will then evaluate as true).The buffer uses non-determinism to choose between accepting input or sending output when both options are equally valid.

