- 1、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 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
您可能关注的文档
- 内蒙古农业大学社会团体注册.doc
- 减数分裂和受精作用习题课.doc
- 几何画板——数学教学平台-中国移动139邮箱.doc
- 几何语言.ppt
- 凤仪初中初三数学《图形的相似》单元测试题.doc
- 函数的最大值和最小值案例分析.doc
- 分为两块小长方形土地,分别种植这两种作物.怎样划分这.ppt
- 分布式锁服务--debby的设计与实现.ppt
- 分级编码(SVC)的代码阅读.doc
- 分项设备配置技术参数.doc
- 2025至2030中国穿梭泡罩包装系统行业市场占有率及有效策略与实施路径评估报告.docx
- 2025至2030中国高温数据记录器行业调研及市场前景预测评估报告.docx
- 2025至2030中国发热探测器AI热敏相机行业市场占有率及有效策略与实施路径评估报告.docx
- 2025至2030中国背带裤行业发展研究与产业战略规划分析评估报告.docx
- 2025至2030中国工业锅炉行业市场发展运行及有效策略与实施路径评估报告.docx
- 2025至2030中国缝合装置行业市场深度研究与战略咨询分析报告.docx
- 2025至2030中国部分回转电动执行机构行业市场占有率及有效策略与实施路径评估报告.docx
- 2025至2030中国潮汐能发电行业市场发展现状及有效策略与实施路径评估报告.docx
- 2025至2030中国电脑主板行业发展现状分析与投资前景预测报告.docx
- 2025至2030中国电镀行业行情走势分析与发展应对策略报告.docx
最近下载
- 《核心素养下的语文教学》课件.pptx VIP
- 2025时事政治试题+答案.docx VIP
- 交通安全宣传知识讲解交通安全PPT模板.pptx VIP
- wbh-819a技术说明书v1[1].pdf VIP
- Unit8 Literature Spot Reading Club 课件-高中英语北师大版(2019)选择性必修第三册.pptx VIP
- 检修记录表(维修记录表).docx VIP
- 2025天津宏达投资控股有限公司及所属企业招聘工作人员笔试历年参考题库附带答案详解.docx VIP
- 2025人民出版社供小学用中华民族大家庭全册教案教学设计.docx
- 管道吊装专项施工方案.docx VIP
- 2025时事政治试题及答案.docx VIP
有哪些信誉好的足球投注网站
文档评论(0)