多线程中互斥对象的使用示例
z摘自孙鑫书籍#include #include DWORD WINAPI pThread(LPVOID lpParameter);//线程一DWORD WINAPI sThread(LPVOID lpParameter);//线程二using namespace std;int tickets=100;HANDLE hMutex;//互斥对象句柄void main(){ HANDLE hThre