Introduction - If you have any usage issues, please Google them yourself
The task
Design a program, according to the different scheduling algorithm simulation operating system to process scheduling.
Scheduling algorithm: time slice cycle method
1, design process control block PBC table structure, it is suitable for cycle time slice rotary algorithm.
2, PBC structure usually include the following information: name of the process, process priority number, cycle time slice, process of CPU time, process status, etc. According to the different scheduling algorithm, PCB structure can make the appropriate adjustment.
3, establish process queue. To different algorithms to different into chain program.
The process requirements to achieve the effect of operation: in the set up process quantity, scheduling algorithm, the system can be set according to the parameters of the operation, and on the screen alternate display ready queue and complete queue process information such as name