多道程序的转换调度.doc

  1. 1、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
  2. 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  3. 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
多道程序的转换调度 课程名称: 实现多道程序的转换调度 编写人员:郭镭波 0510321209 编写日期: 2008.5.28 审批人员: 梅清 一.数据定义: 1.1任务数据: int id; //task id int enterSysTime; //task enter system time int evaluatedRunTime; //evaluated time to tun int priority; //priority of this task int mem; //the count of needed memory int disk; //the count of needed disk 1.2进程数据: int taskId; int state; // 0 creating,1 ready,2 runing,3 wait,4 stopped,5 destroying int priority; //priority of this process ,inherited from task int beginTime; //begin time of this process,according to task int evaluatedRunTime; //evaluated time to tun ,according to task int cpuTime; //used cup time of this process int mem; //how many memory this process need ,inherited form task int disk; //how many disk this process need ,inherited form task int endTime; //precess end time 1.3进程队列: LinkedListProcess process; //process in system 二,程序框图: Scheduler 调度类 Task 作业类 Process 进程类 Main 主类 三,程序源代码: public class Task { int id; //task id int enterSysTime; //task enter system time int evaluatedRunTime; //evaluated time to tun int priority; //priority of this task int mem; //the count of needed memory int disk; //the need of needed disk public Task(int id, int enterSysTime, int evaluatedRunTime, int priority, int mem, int disk) { super(); this.id = id; this.enterSysTime = enterSysTime; this.evaluatedRunTime = evaluatedRunTime; this.priority = priority; this.mem = mem; this.disk = disk; } public int getId() { return id; } public void setId(int id) { this.id = id; } public int getEnterSysTime() { return enterSysTime; } public void setEnterSysTime(int enterSysTime) { this.enterSysTime = enterSysTime; } public int getEvaluatedRunTime() { return evaluatedRunTime; } public void setEvaluatedRunTime(int evaluatedRunTime) { this.evaluatedRunTime = evaluatedRunTime; } public int getPriority() { return priority; } public void setPriority(in

文档评论(0)

170****0532 + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

版权声明书
用户编号:8015033021000003

1亿VIP精品文档

相关文档