CodeBus
www.codebus.net
Search
Sign in
Sign up
Hot Search :
Source
embeded
web
remote control
p2p
game
More...
Location :
Home
Search - scheduling algorithm
Main Category
SourceCode
Documents
Books
WEB Code
Develop Tools
Other resource
Sub Category
assembly language
SCSI-ASPI
ELanguage
Disk Tools
Speech/Voice recognition/combine
Editor
Anti-virus
MultiLanguage
MPI
source in ebook
Delphi VCL
OS Develop
MiddleWare
MacOS develop
LabView
e-language
python
Search - scheduling algorithm - List
[
Editor
]
ProcScheduling
DL : 0
编写并调试一个模拟的进程调度程序,采用“最高优先数优先”调度算法对N(N不小于5)个进程进行调度。 “最高优先数优先”调度算法的基本思想是把CPU分配给就绪队列中优先数最高的进程。 (1). 静态优先数是在创建进程时确定的,并在整个进程运行期间不再改变。 (2). 动态优先数是指进程的优先数在创建进程时可以给定一个初始值,并且可以按一定规则修改优先数。例如:在进程获得一次CPU后就将其优先数减少1,并且进程等待的时间超过某一时限(2个时间片时间)时增加其优先数等。 (3). (**) 进程的优先数及需要的运行时间可以事先人为地指定,(也可以由随机数产生)。 (4). (**)在进行模拟调度过程可以创建(增加)进程,其到达时间为进程输入的时间。 -To write and debug a simulated process scheduler, the " number of the highest priority priority" scheduling algorithm of N (N is not less than 5) process scheduling. " The highest priority number priority scheduling algorithm' s basic idea is that the CPU is allocated to the highest priority number of processes in the ready queue. (1) the static priority number to determine when the process is created, and no longer changes during the run of the entire process. (2) the dynamic priority number refers to the number of priority of the process can create a process to set an initial value, and you can modify certain rules priority number. For example: In the process of time the CPU after the decrease in its priority number 1, and process wait time exceeds a certain time limit (two-chip time) to increase its priority number. (3) (**) the number of the priority of the process and the operating time can be required prior to artificially designated (can also be generated by a ra
Date
: 2025-12-26
Size
: 22kb
User
:
zhangjiaxiao
CodeBus
is one of the largest source code repositories on the Internet!
Contact us :
1999-2046
CodeBus
All Rights Reserved.