1. In the producer-consumer example implemented with semaphores in Section 18.104.22.168, suppose that V () is written incorrectly as P () in process Producer. How does the system behave? 2. When semaphores are used to implement mutual exclusion, it is possible to associate a semaphore SR with each resource R. Each access to R can then be written as P (SR); access R; V (SR) • What should the initial value of SR be?
The post How does the system behave? appeared first on Blackboard Masters.