Q1. (a) Show using an example that if the wait and signal semaphore instructions are not executed atomically that mutual exclusion may be violated. (b) Show an implementation for the wait and signal operations using the hardware TestAndset instruction. Show transcribed image text Q1. (a) Show using an example that if the wait and signal semaphore instructions are not executed atomically that mutual exclusion may be violated. (b) Show an implementation for the wait and signal operations
OR
OR