Description : State the methods of task synchronization. Describe semaphore with suitable example.
Last Answer : The methods of task synchronization are: Semaphore Message queue. Mutual exclusion. Dead lock. Mailboxes. Message Queues. Semaphores: It is a system of sending message by using flags. Multiple concurrent threads of execution ... signal(Sem); } in process P2 { wait(Sem); S2; }