操作系统课程设计--进程管理.docVIP

  • 2
  • 0
  • 约6.58千字
  • 约 9页
  • 2018-12-16 发布于广东
  • 举报
#includestdio.h #includestdlib.h #includestring.h #define NULL 0 int shumu=0; //进程的内容结构体 struct node { int a; char ch; }; //进程PCB结构体 struct jincheng { int pid; int youxian; float luntime; float zhantime; char zhuangtai;//a表示执行,b表示动态就绪 node *neirong; struct jincheng *next; }; struct jincheng *neijin,*neizhi,*p,*q; //换出进程函数 void huanchu(int a) { p=neijin; while(p-pid!=ap!=NULL) { q=p; p=p-next; } if(p==NULL) { printf(该进程不在内存里!\n); return; } if(p==neijin) { neijin=neijin-next; } else { q-next=p-next; } } //杀死正在运行进程函数 void shasi() { neizhi-next=NULL; printf(

文档评论(0)

1亿VIP精品文档

相关文档