摘要:
#include #include using namespace std;HANDLE hSemaphnore1;HANDLE hSemaphnore2;int global_variable =0;void Threadfun1(LPVOID pParam){ WaitForSingleObject(hSemaphnore1,INFINITE); while(1) { global_variable++; printf("%d\n",global_variable); Sleep(100); //睡眠下,让其他线程有机会抢占 ... 阅读全文
posted @ 2013-08-12 18:46
cheng_you_know
阅读(187)
评论(0)
推荐(0)

浙公网安备 33010602011771号