Overview From Feb 13, 1997

Using CCS to model a system

Critical Region Problem

(Process1 | Process2 | Lock) \ {lock, unlock}

Process1 = lock.action.unlock.Process1

Process2 = lock.action.unlock.Process2

Lock = lock.unlock.Lock


Duration of Each Process in C.R.

(enter1, exit1, enter2, exit2, … , enter2, exit2)


Bounded Buffer Problem

Make N + 1 buffers to represent its states

Let N = 2

Buffer0 = put.Buffer1

Buffer1 = put.Buffer2 + get.Buffer0

Buffer2 = get.Buffer1


Does the System Work?