操作系统优先权调度算法课程设计

威廉詹 24 0 TXT 2019-03-13 00:03:03

#include #include #define NULL 0 #define M 10 //pcb数组中的最大个数 typedef struct node { int id; //进程id号 int pr; //进程优先级 int ct; //进程已经运行时间片个数 int at; //进程还需多少运行时间片个数 int bt; //进程需要阻塞的时间片的个数 int sb; //进程运行多少时间片后进入阻塞 char state;//w(就绪),r(运行),f(完成),b(阻塞) struct node *next;

用户评论
请输入评论内容
评分:
暂无评论