摘要:
#include <windows.h>#include <IOSTREAM.H>//线程函数声明DWORD WINAPI FuncProc1( LPVOID lpParameter//thread data);DWORD WINAPI FuncProc2( LPVOID lpParameter//thread data);//int index = 0;int tickets = 100;HANDLE hMutex; //互斥对象int main(){ HANDLE hThread1; HANDLE hThread2; hThread1 = CreateThre... 阅读全文