摘要: #include <stdio.h>#include <stdlib.h>#include <string.h>#include <stdbool.h>#include <windows.h>/*最大临界区数*/#define MAX_BUFFER_NUM 20/*秒到毫秒的乘法因子*/#define INTE_PER_SEC 1000/*生产与消费线程的总数*/#define MAX_THREAD_NUM 64/*每个线程的参数*/typedef struct{ int serial;/*线程序列号*/ char entity;/* 阅读全文