avatar
归纳法证个题,谁会?# Unix - 噫吁兮,危乎高哉
d*t
1
N processes,{Pi: 1<= i <= N}
one share resource R
let all processes Pi require the use of R. I.e.,each process
performs a wait(R).
证明DEADLOCK不存在。
avatar
D*g
2
no one is holding and waiting. hence no dl.

【在 d*******t 的大作中提到】
: N processes,{Pi: 1<= i <= N}
: one share resource R
: let all processes Pi require the use of R. I.e.,each process
: performs a wait(R).
: 证明DEADLOCK不存在。

avatar
f*d
3
three dead lock requirements:
1. limited resources
2. circular waiting
3. no progress
Break any one of these three, there will be no dead lock.

【在 d*******t 的大作中提到】
: N processes,{Pi: 1<= i <= N}
: one share resource R
: let all processes Pi require the use of R. I.e.,each process
: performs a wait(R).
: 证明DEADLOCK不存在。

avatar
d*t
4
还是不懂啊:(
用归纳法的话,
应该是
N=1,就一个PROCESS,P1,一个RESOURCE,R
肯定没有DEADLOCK。
N=2,2个PROCESSES,P1,P2。P1使用R时,P2是WAIT。
也不是DEADLOCK。
然后怎么推广到N呢?
这是归纳法吧?

【在 f***d 的大作中提到】
: three dead lock requirements:
: 1. limited resources
: 2. circular waiting
: 3. no progress
: Break any one of these three, there will be no dead lock.

avatar
D*g
5
why induction?

【在 d*******t 的大作中提到】
: 还是不懂啊:(
: 用归纳法的话,
: 应该是
: N=1,就一个PROCESS,P1,一个RESOURCE,R
: 肯定没有DEADLOCK。
: N=2,2个PROCESSES,P1,P2。P1使用R时,P2是WAIT。
: 也不是DEADLOCK。
: 然后怎么推广到N呢?
: 这是归纳法吧?

avatar
d*t
6
哎,老师要求用MATH INDUCTION :(
这操作系统的东西居然要这么弄,麻烦。
我都很久没做过数学了。

【在 D****g 的大作中提到】
: why induction?
相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。