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.
一个小例子在模拟过程中,我发现如果一个状态处于紧急位置,另一个状态即将到达紧急位置,就会死锁。而且我想验证时间的上下限,所以如果没有时间我必须设置紧急位置。我该如何解决这种情况?
死锁涉及以下依赖链:
c?
t>=3
c!
P2.t==0
P2.t
t>=2
P3.t in [0,1]
P3.t
死锁是由于 1-3 依赖循环造成的——您必须打破这些依赖之一才能解决死锁。