struct TCB { int id; /*线程的内部标识符*/ char name[10]; /*线程的外部标识符*/ unsigned char *stack; /*堆栈的起始地址*/ unsigned sp,ss; /*ss:堆栈段址;sp:堆栈指针*/ int value; /*进程的优先权*/ char state; /*进程状态*/ struct TCB *next;