homework_4 Version 0 |
|
👤 Author: by 838135750qqcom 2019-09-28 07:24:36 |
Two processes are deadlocked, process P1 waits for P2, and process P2 waits for P1. The solution is to set up a flag to count the time while waiting for this. If the two processes are still waiting for the maximum time, P2 will give up the waiting state and wait until P1 is finished.