摘要: 使用Semaphore进行线程同步 #include <windows.h> #include <stdio.h> #define MAX_SEM_COUNT 2 #define THREADCOUNT 3 HANDLE ghSemaphore; DWORD WINAPI ThreadProc(LP 阅读全文
posted @ 2023-03-10 15:33 乘舟凉 阅读(28) 评论(0) 推荐(0) 编辑