摘要:
MSDN上的Mutex代码及其执行结果#include <windows.h>#include <stdio.h>#define THREADCOUNT 2HANDLE ghMutex; DWORD WINAPI WriteToDatabase( LPVOID );int main( void ){ HANDLE aThread[THREADCOUNT]; DWORD ThreadID; int i; // Create a mutex with no initial owner ghMutex = CreateMutex( NULL, ... 阅读全文
posted @ 2012-06-13 20:55
kkmm
阅读(544)
评论(0)
推荐(0)
浙公网安备 33010602011771号