摘要
针对学生在学习和理解操作系统进程及其调度算法上的困难,提出了利用多线程模拟进程时间片轮转的调度算法来使进程的调度更容易理解的思想.文中首先深入分析了进程调度算法流程和数据结构,然后在Linux的环境下利用C语言对算法进行模拟仿真.经过测试,模拟程序达到了很好的进程调度仿真效果,为操作系统的有效教学提供了较好的辅助手段.
This paper proposes an algorithm for multithread simulation of time slice cycling process scheduling to address the difficulties in understanding the process of operating system and its scheduling.We first analyze the procedure of the process scheduling algorithm and the data structure,and then simulate the algorithm with C language in Linux.After being tested,the simulation program proves to be a good way to reproduce the process scheduling,which can serve as an effective aid to the teaching of operating system.
出处
《四川文理学院学报》
2014年第5期76-79,共4页
Sichuan University of Arts and Science Journal
关键词
进程调度
时间片轮转
多线程
队列
process scheduling
time slice cycling
multithread
queue