搜索资源列表
调度算法
- 这是操作系统实验的调度算法,包含时间片轮转法,抢占式优先权算法,非抢占式优先权算法,先来先服务算法,短作业(进程)优先调度算法. -This is the experimental operating system scheduling algorithms, including time-rotate, Preemptive priority algorithm, non-preemptive priority algorithm, first-come first-serve algor
chuliqidiaodu
- (1)设计一个有N个进程共行的进程调度程序。每个进程由一个进程控制块 PCB表示。进程控制块包括以下信息:进程名,进程优先数,进程需要运行的时间,占用CPU的时间以及进程的状态等。 (2)本调度程序用时间片轮转算法。 (3)编写程序并调试运行。 -(1) design a process, a total of N lines of the process scheduler. Each process consists of a process control bloc
Test
- 一、实验目的 (1)掌握进程状态转换过程 (2)掌握时间片轮转的进程调度算法; (3)掌握带优先级的进程调度算法; 二、实验内容 (1)自定义PCB的数据结构; (2)使用带优先级的时间片轮转法调度进程,每运行一个时间片,优先级减半。 (3)命令集 A)create 随机创建进程,进程的优先级与所需要的时间片随机决定; B)round 执行1次时间片轮转操作,其方法为运行高优先级队列的第1个,再降低其优先级,插入到相应的队列中。 C)ps 查看当前进程状态