文件名称:Test
介绍说明--下载内容来自于网络,使用问题请自行百度
一、实验目的
(1)掌握进程状态转换过程
(2)掌握时间片轮转的进程调度算法;
(3)掌握带优先级的进程调度算法;
二、实验内容
(1)自定义PCB的数据结构;
(2)使用带优先级的时间片轮转法调度进程,每运行一个时间片,优先级减半。
(3)命令集
A)create 随机创建进程,进程的优先级与所需要的时间片随机决定;
B)round 执行1次时间片轮转操作,其方法为运行高优先级队列的第1个,再降低其优先级,插入到相应的队列中。
C)ps 查看当前进程状态
D)sleep 命令将进程挂起
E)awake 命令唤醒1个被挂起的进程
F)kill 命令杀死进程
G)quit命令退出
(4)选用面向对象的编程方法。
-First, the purpose of the experiment
(1) conversion process to master the process of state
(2) to grasp the round-robin process scheduling algorithm
(3) grasp with the priority process scheduling algorithm
Second, experimental content
(1) custom data structure of the PCB
(2) with priority round-robin method scheduling process, each running a time slice, the priority is reduced by half.
(3) command set
A) the create random creation process, the priority of the process is determined randomly with the time required for film
B) the round implementation of a time slice rotation operation, one of its methods to run the high-priority queue, and then lower its priority, is inserted into the appropriate queue.
C) ps, view the current process state
D) the sleep command to suspend the process
E) Awake command to wake up a process is suspended
F) the kill command to kill the process
G), the quit command to exit
(4) selection of the object-oriented programming methods.
(1)掌握进程状态转换过程
(2)掌握时间片轮转的进程调度算法;
(3)掌握带优先级的进程调度算法;
二、实验内容
(1)自定义PCB的数据结构;
(2)使用带优先级的时间片轮转法调度进程,每运行一个时间片,优先级减半。
(3)命令集
A)create 随机创建进程,进程的优先级与所需要的时间片随机决定;
B)round 执行1次时间片轮转操作,其方法为运行高优先级队列的第1个,再降低其优先级,插入到相应的队列中。
C)ps 查看当前进程状态
D)sleep 命令将进程挂起
E)awake 命令唤醒1个被挂起的进程
F)kill 命令杀死进程
G)quit命令退出
(4)选用面向对象的编程方法。
-First, the purpose of the experiment
(1) conversion process to master the process of state
(2) to grasp the round-robin process scheduling algorithm
(3) grasp with the priority process scheduling algorithm
Second, experimental content
(1) custom data structure of the PCB
(2) with priority round-robin method scheduling process, each running a time slice, the priority is reduced by half.
(3) command set
A) the create random creation process, the priority of the process is determined randomly with the time required for film
B) the round implementation of a time slice rotation operation, one of its methods to run the high-priority queue, and then lower its priority, is inserted into the appropriate queue.
C) ps, view the current process state
D) the sleep command to suspend the process
E) Awake command to wake up a process is suspended
F) the kill command to kill the process
G), the quit command to exit
(4) selection of the object-oriented programming methods.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Test/bin/Debug/Test.exe
Test/main.c
Test/obj/Debug/main.o
Test/Test.cbp
Test/Test.layout
Test/bin/Debug
Test/obj/Debug
Test/bin
Test/obj
Test
Test/main.c
Test/obj/Debug/main.o
Test/Test.cbp
Test/Test.layout
Test/bin/Debug
Test/obj/Debug
Test/bin
Test/obj
Test
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.