include
5 #define T_MAX 100
6 int ticket;
7 CRITICAL_SECTION CriticalSection;
8 /* //售票线程...return 0;
19 }
20
21 void MyThread()
22 {
23 HANDLE handle1,handle2,handle3,handle4,handle5;
24 //5个售票线程...NULL,NULL);
29 handle5 = CreateThread(NULL,NULL,SaleThread,(void*)5,NULL,NULL);
30 }
31 */
32
33 //售票线程...return 0;
46 }
47 void MyThread()
48 {
49 HANDLE handle1,handle2,handle3,handle4,handle5;
50 //5个售票线程