avatar
去哪买picopsu的砖头?# Hardware - 计算机硬件
n*6
1
【 以下文字转载自 CS 讨论区 】
发信人: Lyfinger (Lyted), 信区: CS
标 题: 请教这段Code到底是哪错了?
发信站: BBS 未名空间站 (Tue Mar 22 19:07:59 2011, 美东)
Find, correct and explain the defect in the following code snippet.
Mutex mA;
Mutex mB;
Take(mA);
Take(mB);
DoSomething();
Release(mA);
Release(mB);
avatar
E*e
2
物美价廉?
avatar
w*g
3
呵呵. 什么问题这是

【在 n******6 的大作中提到】
: 【 以下文字转载自 CS 讨论区 】
: 发信人: Lyfinger (Lyted), 信区: CS
: 标 题: 请教这段Code到底是哪错了?
: 发信站: BBS 未名空间站 (Tue Mar 22 19:07:59 2011, 美东)
: Find, correct and explain the defect in the following code snippet.
: Mutex mA;
: Mutex mB;
: Take(mA);
: Take(mB);
: DoSomething();

avatar
a*s
4
12v的砖头到处都是。就是high power的难买些。
avatar
o*y
5
Release(mB)
Release(mA)

【在 n******6 的大作中提到】
: 【 以下文字转载自 CS 讨论区 】
: 发信人: Lyfinger (Lyted), 信区: CS
: 标 题: 请教这段Code到底是哪错了?
: 发信站: BBS 未名空间站 (Tue Mar 22 19:07:59 2011, 美东)
: Find, correct and explain the defect in the following code snippet.
: Mutex mA;
: Mutex mB;
: Take(mA);
: Take(mB);
: DoSomething();

avatar
E*e
6
就是找10安朝上的,美帝都好贵,干脆从国内带了

【在 a*****s 的大作中提到】
: 12v的砖头到处都是。就是high power的难买些。
avatar
m*n
7
Release的顺序无关紧要,因为不可能阻塞。
马德,到底有没有学过数据结构啊?!
你文科生?

【在 o***y 的大作中提到】
: Release(mB)
: Release(mA)

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