Will it causing deadlock? How do we fixed it?
P1: P2: Wait(S); Wait(Q); Wait(Q); Wait(S); ........ ............. Signal(S); Signal(Q); Signal(Q); Signal(S);
@Tesla!
Is there any problem in Magma's solution? It will be deadlock free right? Please check once.
yeah there is no problem in @Magma solution.