c++编写进程调度模拟程序(Preparation of c++ scheduling process simulation program).docVIP

  • 10
  • 0
  • 约8.27千字
  • 约 29页
  • 2017-08-16 发布于河南
  • 举报

c++编写进程调度模拟程序(Preparation of c++ scheduling process simulation program).doc

c编写进程调度模拟程序(Preparationofcschedulingprocesssimulationprogram)

c++编写进程调度模拟程序(Preparation of c++ scheduling process simulation program) #包括 iostream。” #包括程序。” #包括时间。” #包括 stdio. h #包括字符串。” const int maxcommandlen = 50; ///////////////////////////////////////////////////////////////////////////////////// / / / /过程 / / ///////////////////////////////////////////////////////////////////////////////////// 课堂过程/进程类 { 友元类CPU; 受保护的: 静态变量init_id;/ /随机进程ID int ID;/ /进程ID 焦runtext [ maxcommandlen ];//进程指令数组 int IP;/ /进程指令指针,保存进程指令执行到的具体位置 布尔isusesource;/ /此进程是否使用资源,真的使用中假:未使用 布尔被阻塞;/此进程是否被阻塞真的阻塞假:未阻塞 在单位时间内;/ /进程单位被CPU执行时间,默认1 int blocktime;/ /进程被阻塞时间 公共: 静态randid(

您可能关注的文档

文档评论(0)

1亿VIP精品文档

相关文档