[理工] 97交大OS deadlock

楼主: crystallove (Garin)   2018-01-19 18:36:41
题目:
https://i.imgur.com/bbmc1TQ.jpg
解答:
https://i.imgur.com/40V77pF.jpg
洪逸笔记:
https://i.imgur.com/ymjXFyT.jpg
四个条件成立一定会有死结吗?
还是只是can发生
有可能不会有?
维基:
https://i.imgur.com/jJRVBhD.jpg
A deadlock situation on a resource can arise if and only if all of the followi
ng
conditions hold simultaneously in a system
作者: nO25948 (chenyuyan)   2018-01-19 19:06:00
我记得是可能会有
作者: a28238341a (小蜗)   2018-01-19 19:06:00
有可能不会有阿那只是必要条件而已
作者: a020304888a (张小台)   2018-01-19 19:56:00
will
作者: taida (taida)   2018-01-19 20:34:00
他用will是有可能发生的意思 如果用must那才会错
作者: ping780520 (ping780520)   2018-01-19 20:39:00
不会啊那是必要条件,反例像RAG图就是了
作者: a020304888a (张小台)   2018-01-19 20:40:00
不过洪的意思感觉will等于一定会
作者: q1qip123 (wtlee)   2018-01-19 21:04:00
这大概算反例吧" target="_blank" rel="nofollow">
作者: taida (taida)   2018-01-19 23:39:00
刚刚参考了一些解答 will是比较强烈的说法 应该用can其他解答有些是给B
作者: microchianag (Sss11234 116EE)   2018-01-20 10:45:00
死结四个条件是必要条件,但不是充分条件。死结发生时,这4个条件一定也会发生。但反过来说,这4个条件发生时,不一定会有死结
作者: can18 (18号)   2018-01-20 14:54:00
答案是D 有4个条件也不一定会发生不过我觉得B也对 (答案是看参考解答
作者: q1qip123 (wtlee)   2018-01-21 00:21:00
若是signal初值为0,不就可以了?
作者: gouya (あれはいらないからでち)   2018-01-21 17:06:00
这题答案是B,题目只是要问当没有process suspended,执行x.signal会不会有影响原文书上是这样写的https://i.imgur.com/jmtNaKy.jpg

Links booklink

Contact Us: admin [ a t ] ucptt.com