操作系统实验处理机调度C语言实现.docVIP

  • 0
  • 0
  • 约4.65千字
  • 约 8页
  • 2023-03-22 发布于广东
  • 举报
. . 精品 精品 . 精品 #includestdio.h #includestdlib.h #include conio.h #includemath.h #define N 20 #define MAX 100 typedef struct PCB //pcb进程控制块定义 { int num[N]; //进程序号 char name[10]; //进程名 char state; //进程状态 int tijiaotime; //进程到达时间 int runtime; //进程开始时间 int finishtime; //进程结束时间 int needtime; //服务时间 int pro;//进程优先级 struct PCB *next; //链接指针 指向下个作业的 }pcb; struct PCB *head_input; struct PCB *head_run; struct PCB *head_run_pre; unsigned long current; //记录系统当前时间的变量 int time=10000,n; //计时器 pcb *head=NULL,*p,*q; void getInfo() //创建进程 { int num; prin

您可能关注的文档

文档评论(0)

1亿VIP精品文档

相关文档