#include #include #include /*线程的四个状态*/#define finished 0#define running 1#define ready 2#define blocked 3#define null 0#define NTCB 5 /*最大线程数为5*/ #define GET_INDOS 0x34#define GET_CRIT_ERR 0x5d06 #define TLE 1 #define n 5 /*buffer缓冲区大小*/int current,timecount; /*正在执行的线程内部标识符