批处理系统的作业调度模拟
#include"stdlib.h"typedefstructjcb{charname[4];intlength;intprinter;inttape;intruntime;intwaittime;structjcb*next;}JCB;JCB*head;inttape,printer;longmemory;shedule(){floatw,k;JCB*p,*q,*s,*t;do{p=head;s=NULL;q=NULL;k=0;while(p!=NULL){if(p->lengthtape<
下载地址
用户评论