文件名称:ProcScheduling
-
所属分类:
- 标签属性:
- 上传时间:2012-12-23
-
文件大小:22.29kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
编写并调试一个模拟的进程调度程序,采用“最高优先数优先”调度算法对N(N不小于5)个进程进行调度。
“最高优先数优先”调度算法的基本思想是把CPU分配给就绪队列中优先数最高的进程。
(1). 静态优先数是在创建进程时确定的,并在整个进程运行期间不再改变。
(2). 动态优先数是指进程的优先数在创建进程时可以给定一个初始值,并且可以按一定规则修改优先数。例如:在进程获得一次CPU后就将其优先数减少1,并且进程等待的时间超过某一时限(2个时间片时间)时增加其优先数等。
(3). (**) 进程的优先数及需要的运行时间可以事先人为地指定,(也可以由随机数产生)。
(4). (**)在进行模拟调度过程可以创建(增加)进程,其到达时间为进程输入的时间。
-To write and debug a simulated process scheduler, the " number of the highest priority priority" scheduling algorithm of N (N is not less than 5) process scheduling. " The highest priority number priority scheduling algorithm' s basic idea is that the CPU is allocated to the highest priority number of processes in the ready queue. (1) the static priority number to determine when the process is created, and no longer changes during the run of the entire process. (2) the dynamic priority number refers to the number of priority of the process can create a process to set an initial value, and you can modify certain rules priority number. For example: In the process of time the CPU after the decrease in its priority number 1, and process wait time exceeds a certain time limit (two-chip time) to increase its priority number. (3) (**) the number of the priority of the process and the operating time can be required prior to artificially designated (can also be generated by a ra
“最高优先数优先”调度算法的基本思想是把CPU分配给就绪队列中优先数最高的进程。
(1). 静态优先数是在创建进程时确定的,并在整个进程运行期间不再改变。
(2). 动态优先数是指进程的优先数在创建进程时可以给定一个初始值,并且可以按一定规则修改优先数。例如:在进程获得一次CPU后就将其优先数减少1,并且进程等待的时间超过某一时限(2个时间片时间)时增加其优先数等。
(3). (**) 进程的优先数及需要的运行时间可以事先人为地指定,(也可以由随机数产生)。
(4). (**)在进行模拟调度过程可以创建(增加)进程,其到达时间为进程输入的时间。
-To write and debug a simulated process scheduler, the " number of the highest priority priority" scheduling algorithm of N (N is not less than 5) process scheduling. " The highest priority number priority scheduling algorithm' s basic idea is that the CPU is allocated to the highest priority number of processes in the ready queue. (1) the static priority number to determine when the process is created, and no longer changes during the run of the entire process. (2) the dynamic priority number refers to the number of priority of the process can create a process to set an initial value, and you can modify certain rules priority number. For example: In the process of time the CPU after the decrease in its priority number 1, and process wait time exceeds a certain time limit (two-chip time) to increase its priority number. (3) (**) the number of the priority of the process and the operating time can be required prior to artificially designated (can also be generated by a ra
(系统自动生成,下载前可以参看下载内容)
下载文件列表
ProcScheduling.pdf
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.