n******6 发帖数: 1829 | 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); | J*****n 发帖数: 4859 | | c*******7 发帖数: 17225 | |
|