文件名称:jcgl
介绍说明--下载内容均来自于网络,请自行研究使用
(1)设计进程控制块PCB表结构,分别适用于优先权调度算法和时间片轮转调度算法。
PCB结构包括以下信息:进程名、进程优先数(或轮转时间片),进程所占用的CPU时间,进程的状态,当前队列指针等。根据调度算法的不同,PCB结构的内容可以作适当的增删。
(2)建立进程就绪队列。对两种不同算法编制入链子程序。
(3)编制两种进程调度算法:a)优先数调度;b)时间片轮转调度。允许用户在程序运行时选择使用某一种调度算法。-(1) design process control block PCB table structure, respectively, applicable to the priority scheduling algorithm and the time slice rotation scheduling algorithm. PCB structure includes the following information: process name, process priority number (or the rotation time slice), the process of occupying CPU time, the process of the state, such as the current queue pointer. According to the different scheduling algorithm, PCB content of the structure can be used for appropriate additions and deletions. (2) the establishment of the process ready queue. Algorithm on two different procedures for the preparation into the chain. (3) the process of the preparation of two scheduling algorithms: a) the number of scheduling priority b) time slice scheduling rotation. Allows the user to choose to use when running a particular scheduling algorithm.
PCB结构包括以下信息:进程名、进程优先数(或轮转时间片),进程所占用的CPU时间,进程的状态,当前队列指针等。根据调度算法的不同,PCB结构的内容可以作适当的增删。
(2)建立进程就绪队列。对两种不同算法编制入链子程序。
(3)编制两种进程调度算法:a)优先数调度;b)时间片轮转调度。允许用户在程序运行时选择使用某一种调度算法。-(1) design process control block PCB table structure, respectively, applicable to the priority scheduling algorithm and the time slice rotation scheduling algorithm. PCB structure includes the following information: process name, process priority number (or the rotation time slice), the process of occupying CPU time, the process of the state, such as the current queue pointer. According to the different scheduling algorithm, PCB content of the structure can be used for appropriate additions and deletions. (2) the establishment of the process ready queue. Algorithm on two different procedures for the preparation into the chain. (3) the process of the preparation of two scheduling algorithms: a) the number of scheduling priority b) time slice scheduling rotation. Allows the user to choose to use when running a particular scheduling algorithm.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
进程管理和调度的算法实现.cpp