摘要: #include <windows.h>#include <iostream>#include <process.h>using namespace std;int g_nCount1 = 0;int g_nCount2 = 0;CRITICAL_SECTION g_cs;//临界区BOOL g_bContinue = TRUE;//线程结束标志UINT WIN... 阅读全文
posted @ 2010-02-09 12:44 liulun 阅读(579) 评论(0) 推荐(0) 编辑
摘要: #include <windows.h>#include <iostream>using namespace std;DWORD WINAPI ThreadIdle(LPVOID lpParam){ int i=0; while(i++<10) { cout<<"Idel thread is running"<<endl; } return ... 阅读全文
posted @ 2010-02-09 09:33 liulun 阅读(996) 评论(0) 推荐(1) 编辑