Description: (1) using C language to implement a process of N priority scheduling algorithm with dynamic priority of the process of scheduling
(2) Each of the process used to identify the process control block PCB used to describe the structure, including the following fields:
Process ID number id
The process priority number priority, and provides greater process priority number, the higher its priority
Process has occupied the CPU time, cputime
The process needs to take up the CPU time of alltime, when the process has finished running time, alltime becomes 0
The process of blocking time startblock, said that when the process is running startblock a time slice, the process will enter the blocked state
Processes are blocked time blocktime, indicated that they had blocked the process of time to wait blocktime films, will be converted into a ready state
Process status state
Queue pointer next, is used to PCB arranged in the queue.
(3) The change in the number of priority pr
To Search:
File list (Check if you may need any files):
first.cpp