2012年6月13日
摘要: 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 阅读(524) 评论(0) 推荐(0) 编辑