chulijidiaodu_111

所属分类:进程与线程
开发工具:Visual C++
文件大小:99KB
下载次数:273
上传日期:2006-11-21 23:04:52
上 传 者jilei123
说明:  处理机调度,编写一个进程调度程序,允许多个进程共行的进程调度程序。   进程调度算法:采用最高优先数优先的调度算法(即把处理机分配给优先数最高的进程)和先来先服务算法。   每个进程有一个进程控制块(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)

文件列表:
GraphVersion (0, 2006-01-17)
GraphVersion\GraphAlgorithm.h (560, 2006-01-02)
GraphVersion\GraphAlgorithm.cpp (3488, 2006-01-02)
GraphVersion\GraphVersion.dsp (4246, 2006-01-10)
GraphVersion\GraphVersion.exe (266317, 2006-01-10)
GraphVersion\GraphVersion.dsw (549, 2006-01-10)
GraphVersion\GraphVersion.ncb (58368, 2006-01-10)
GraphVersion\GraphVersion.plg (7424, 2006-01-10)
GraphVersion\Reference.cpp.bak (941, 2006-01-10)
GraphVersion\Reference.cpp (1045, 2006-01-10)
GraphVersion\Ulti.H (129, 2006-01-09)
GraphVersion\EQueue.CPP (2514, 2006-01-10)
GraphVersion\EQueue.h (631, 2006-01-10)
GraphVersion\inputData.TXT (116, 2006-01-10)
GraphVersion\outputData.txt (2695, 2006-01-17)
GraphVersion\PCB.CPP (1655, 2006-01-10)
GraphVersion\PCB.H (768, 2006-01-10)
GraphVersion\Ulti.CPP (553, 2006-01-09)
GraphVersion\mainTest2.c.bak (6663, 2006-01-10)
GraphVersion\mainTest.CPP.bak (9629, 2006-01-10)
GraphVersion\mainTest.CPP (11394, 2006-01-10)
GraphVersion\test.JPG (16388, 2006-01-10)
GraphVersion\Thumbs.db (7168, 2006-01-10)
GraphVersion\GraphVersion.opt (54784, 2006-01-10)

近期下载者

相关文件


收藏者