去哪买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);
发信人: 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);