进程调度算法代码参考.pdfVIP

  • 104
  • 0
  • 约1.27万字
  • 约 10页
  • 2021-11-15 发布于福建
  • 举报
进程调度算法代码 // process.cpp : Defines the entry point for the console application. // #include stdafx.h #include stdio.h #include stdlib.h #include iostream #define NULL 0 #define false 0 #define true 1 bool _state=0; struct PCB { int ID; int priority; int CPUtime; int ALLtime; int State; PCB* next; }; void init();/* 产生 idle 进程,输入用户进程数目,调用 insert()*/ void print(PCB *pcb);/* 输出进程属性信息 */ void print_init(PCB *pcb);/* 输出所有 PCB的初始值 */ void insert();/* 生成进程属性信息,插入进程就绪队列

文档评论(0)

1亿VIP精品文档

相关文档