作业调度实验(含代码).docVIP

  • 20
  • 0
  • 约6.29千字
  • 约 8页
  • 2016-08-23 发布于河南
  • 举报
作业调度实验(含代码)

源代码: #include stdio.h #include stdlib.h #include conio.h #define getpch(type) (type*)malloc(sizeof(type)) #define NULL 0 int n; float T1=0,T2=0; int times=0; struct jcb //作业控制块 { char name[10]; //作业名 int reachtime; //作业到达时间 int starttime; //作业开始时间 int needtime; //作业需要运行的时间 float super; //作业的响应比 int finishtime; //作业完成时间 float cycletime; //作业周转时间 float cltime; //作业带权周转时间 char state; //作业状态 struct jcb *next; //结构体指针 }*ready=NULL,*p,*q; typedef struct jcb JCB; void inize() //初始化界面 { printf(\n\n\t\t********************

文档评论(0)

1亿VIP精品文档

相关文档