由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
JobHunting版 - deadlock一问
相关主题
careerup 150 上一道deadlock 题Amazon电面 (05/02/09更新第二次,第三次电面)
break deadlock in a live process without killing the process今天一个trading firm的面试题
Linux 的困惑。面试题
Qc, Yahoo, Cisco面经微软面试题
电力电子电机驱动控制器Software/Firmware Staff Engineer求助:非cs ms onsite 怎么准备
微软面试题我也来报个amazon phone interview的面经吧
[合集] OS interview questionsamazon 电面面经
[合集] Google interview question一个fork()问题
相关话题的讨论汇总
话题: deadlock话题: 一问话题: locks话题: 避免话题: conditions
进入JobHunting版参与讨论
1 (共1页)
h*********3
发帖数: 111
1
deadlock 可以避免吗?
如果不行,说明原因。
如果可以,如何避免?
M7
发帖数: 219
2
看一下wiki吧。

【在 h*********3 的大作中提到】
: deadlock 可以避免吗?
: 如果不行,说明原因。
: 如果可以,如何避免?

c**y
发帖数: 172
3
From operating system perspective, four conditions are necessary for
deadlock. Note that none of them is sufficient.
1. finite resources
2. circular wait
3. wait and hold
4. non preemptive
Deadlock can be avoided. Among the four conditions mentioned above, only
condition 2 can be regulated to avoid deadlock. In general the solution is
to put order in multiple locks, and a thread must acquire all necessary
locks in the same order. This way is usually called "canonical lock".
j********x
发帖数: 2330
4
deadlock avoidance and prevention is possible.
But may cause live lock if I remember right.
1 (共1页)
进入JobHunting版参与讨论
相关主题
一个fork()问题电力电子电机驱动控制器Software/Firmware Staff Engineer
没天理了qualcomm pop-up interview微软面试题
UBS phone interview, 求祝福[合集] OS interview questions
请教个题目[合集] Google interview question
careerup 150 上一道deadlock 题Amazon电面 (05/02/09更新第二次,第三次电面)
break deadlock in a live process without killing the process今天一个trading firm的面试题
Linux 的困惑。面试题
Qc, Yahoo, Cisco面经微软面试题
相关话题的讨论汇总
话题: deadlock话题: 一问话题: locks话题: 避免话题: conditions