Consider the following two processes behavior’s which is usuallyused to introduce the deadlock concept in communicating processes,where S and Q are two semaphores shared by the processes. Actually,not all of the possible scenarios lead to a deadlock in a realsituation. Describe the role CPU scheduler plays, and how it cancontribute to a deadlocked and a non-deadlocked situation amongthese processes.
P0 P1 wait(S) wait(Q) wait(Q) wait(S)
. . . . .signal(Q) signal(S) signal(S) signal(Q)
Expert Answer
An answer will be send to you shortly. . . . .