CodeBus
www.codebus.net
Search
Sign in
Sign up
Hot Search :
Source
embeded
web
remote control
p2p
game
More...
Location :
Home
Search - Round Robin Time Slice
Main Category
SourceCode
Documents
Books
WEB Code
Develop Tools
Other resource
Search - Round Robin Time Slice - List
[
SCM
]
Test
DL : 0
一、实验目的 (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.
Date
: 2025-12-20
Size
: 17kb
User
:
mengmeng
CodeBus
is one of the largest source code repositories on the Internet!
Contact us :
1999-2046
CodeBus
All Rights Reserved.