摘要:
#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... 阅读全文
摘要:
#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 ... 阅读全文