文件名称:Test
- 所属分类:
- 单片机(51,AVR,MSP430等)
- 资源属性:
- [C/C++] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 17kb
- 下载次数:
- 0次
- 提 供 者:
- meng****
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
一、实验目的
(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
....\main.c
....\obj\Debug\main.o
....\Test.cbp
....\Test.layout
....\bin\Debug
....\obj\Debug
....\bin
....\obj
Test
....\main.c
....\obj\Debug\main.o
....\Test.cbp
....\Test.layout
....\bin\Debug
....\obj\Debug
....\bin
....\obj
Test