Exercise: study the monitor object implementation in both programs

Exercise

 

Solution