文件名称:chulijidiaodu_111
- 所属分类:
- 操作系统开发
- 资源属性:
- [Windows] [Visual C] [源码]
- 上传时间:
- 2008-10-13
- 文件大小:
- 98.97kb
- 下载次数:
- 0次
- 提 供 者:
- 王*
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
处理机调度,编写一个进程调度程序,允许多个进程共行的进程调度程序。
进程调度算法:采用最高优先数优先的调度算法(即把处理机分配给优先数最高的进程)和先来先服务算法。
每个进程有一个进程控制块(PCB)表示。进程控制块可以包含如下信息:进程名、优先数、到达时间、需要运行时间、已用CPU时间、进程状态等等。
进程的优先数及需要的运行时间可以事先人为地指定(也可以由随机数产生)。进程的到达时间为输入进程的时间。
进程的运行时间以时间片为单位进行计算。
每个进程的状态可以是就绪 W(Wait)、运行R(Run)、或完成F(Finish)三种状态之一。
就绪进程获得 CPU后都只能运行一个时间片。用已占用CPU时间加1来表示。
如果运行一个时间片后,进程的已占用 CPU时间已达到所需要的运行时间,则撤消该进程,如果运行一个时间片后进程的已占用CPU时间还未达所需要的运行时间,也就是进程还需要继续运行,此时应将进程的优先数减1(即降低一级),然后把它插入就绪队列等待CPU。
每进行一次调度程序都打印一次运行进程、就绪队列、以及各个进程的 PCB,以便进行检查。
重复以上过程,直到所要进程都完成为止
-processor scheduling, the preparation of a process scheduling procedures, allowing a total of more than process the process scheduler. Process scheduling algorithm : Highest priority for priority scheduling algorithm (namely processors allocated to the highest priority in the process) and a first-come first-service algorithm . Each process is a process control block (PCB) said. Process control block may contain the following information : process, and a number of priority, arriving in time, the running time, CPU has spent time, the process of the state and so on. Several priorities for the process of the operation and needs time to be designated prior to artificially (and also by the random number generator). The arrival process for the importation process of time. The process of running t
进程调度算法:采用最高优先数优先的调度算法(即把处理机分配给优先数最高的进程)和先来先服务算法。
每个进程有一个进程控制块(PCB)表示。进程控制块可以包含如下信息:进程名、优先数、到达时间、需要运行时间、已用CPU时间、进程状态等等。
进程的优先数及需要的运行时间可以事先人为地指定(也可以由随机数产生)。进程的到达时间为输入进程的时间。
进程的运行时间以时间片为单位进行计算。
每个进程的状态可以是就绪 W(Wait)、运行R(Run)、或完成F(Finish)三种状态之一。
就绪进程获得 CPU后都只能运行一个时间片。用已占用CPU时间加1来表示。
如果运行一个时间片后,进程的已占用 CPU时间已达到所需要的运行时间,则撤消该进程,如果运行一个时间片后进程的已占用CPU时间还未达所需要的运行时间,也就是进程还需要继续运行,此时应将进程的优先数减1(即降低一级),然后把它插入就绪队列等待CPU。
每进行一次调度程序都打印一次运行进程、就绪队列、以及各个进程的 PCB,以便进行检查。
重复以上过程,直到所要进程都完成为止
-processor scheduling, the preparation of a process scheduling procedures, allowing a total of more than process the process scheduler. Process scheduling algorithm : Highest priority for priority scheduling algorithm (namely processors allocated to the highest priority in the process) and a first-come first-service algorithm . Each process is a process control block (PCB) said. Process control block may contain the following information : process, and a number of priority, arriving in time, the running time, CPU has spent time, the process of the state and so on. Several priorities for the process of the operation and needs time to be designated prior to artificially (and also by the random number generator). The arrival process for the importation process of time. The process of running t
(系统自动生成,下载前可以参看下载内容)
下载文件列表
压缩包 : 107215773chulijidiaodu_111.rar 列表 GraphVersion GraphVersion\GraphAlgorithm.h GraphVersion\GraphAlgorithm.cpp GraphVersion\GraphVersion.dsp GraphVersion\GraphVersion.exe GraphVersion\GraphVersion.dsw GraphVersion\GraphVersion.ncb GraphVersion\GraphVersion.plg GraphVersion\Reference.cpp.bak GraphVersion\Reference.cpp GraphVersion\Ulti.H GraphVersion\EQueue.CPP GraphVersion\EQueue.h GraphVersion\inputData.TXT GraphVersion\outputData.txt GraphVersion\PCB.CPP GraphVersion\PCB.H GraphVersion\Ulti.CPP GraphVersion\mainTest2.c.bak GraphVersion\mainTest.CPP.bak GraphVersion\mainTest.CPP GraphVersion\test.JPG GraphVersion\Thumbs.db GraphVersion\GraphVersion.opt