Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如果在彼得森的算法中,一个进程在离开临界区之后被抢占,然后将其标志设置为假。那么就不会出现死锁了。?? 请帮忙!
This cannot cause deadlock, because there is nothing that is blocking the process which just exited the critical section from proceeding.
没有僵局。这就是为什么我们都在学校学习这种理论算法。
注意:如果你做错了什么,你可能会在任何地方遇到死锁。但这不是由该算法的错误或属性引起的。