CodeBus
www.codebus.net
Search
Sign in
Sign up
Hot Search :
Source
embeded
web
remote control
p2p
game
More...
Location :
Home
Search - a-w
Main Category
SourceCode
Documents
Books
WEB Code
Develop Tools
Other resource
Search - a-w - List
[
OS Develop
]
chulijidiaodu_111
DL : 0
处理机调度,编写一个进程调度程序,允许多个进程共行的进程调度程序。 进程调度算法:采用最高优先数优先的调度算法(即把处理机分配给优先数最高的进程)和先来先服务算法。 每个进程有一个进程控制块(PCB)表示。进程控制块可以包含如下信息:进程名、优先数、到达时间、需要运行时间、已用CPU时间、进程状态等等。 进程的优先数及需要的运行时间可以事先人为地指定(也可以由随机数产生)。进程的到达时间为输入进程的时间。 进程的运行时间以时间片为单位进行计算。 每个进程的状态可以是就绪 W(Wait)、运行R(Run)、或完成F(Finish)三种状态之一。 就绪进程获得 CPU后都只能运行一个时间片。用已占用CPU时间加1来表示。 如果运行一个时间片后,进程的已占用 CPU时间已达到所需要的运行时间,则撤消该进程,如果运行一个时间片后进程的已占用CPU时间还未达所需要的运行时间,也就是进程还需要继续运行,此时应将进程的优先数减1(即降低一级),然后把它插入就绪队列等待CPU。 每进行一次调度程序都打印一次运行进程、就绪队列、以及各个进程的 PCB,以便进行检查。 重复以上过程,直到所要进程都完成为止 -processor scheduling, the preparation of a process scheduling procedures, allowing a total of more than process the process scheduler. Process scheduling algorithm : Highest priority for priority scheduling algorithm (namely processors allocated to the highest priority in the process) and a first-come first-service algorithm . Each process is a process control block (PCB) said. Process control block may contain the following information : process, and a number of priority, arriving in time, the running time, CPU has spent time, the process of the state and so on. Several priorities for the process of the operation and needs time to be designated prior to artificially (and also by the random number generator). The arrival process for the importation process of time. The process of running t
Date
: 2008-10-13
Size
: 98.97kb
User
:
王山
[
OS Develop
]
czxt
DL : 0
关于操作系统:本程序可选用优先数法或简单轮转法对五个进程进行调度。每个进程处于运行R(run)、就绪W(wait)和完成F(finish)三种状态之一,并假定起始状态都是就绪状态W。-On the operating system: This procedure may choose to use the priority number of law or simple rotation on the five process scheduling. Each process is running R (run), ready W (wait) and the completion of F (finish), one of three states and assume that the initial state is a state of readiness W.
Date
: 2025-12-29
Size
: 1kb
User
:
hgy
[
OS Develop
]
chulijidiaodu_111
DL : 0
处理机调度,编写一个进程调度程序,允许多个进程共行的进程调度程序。 进程调度算法:采用最高优先数优先的调度算法(即把处理机分配给优先数最高的进程)和先来先服务算法。 每个进程有一个进程控制块(PCB)表示。进程控制块可以包含如下信息:进程名、优先数、到达时间、需要运行时间、已用CPU时间、进程状态等等。 进程的优先数及需要的运行时间可以事先人为地指定(也可以由随机数产生)。进程的到达时间为输入进程的时间。 进程的运行时间以时间片为单位进行计算。 每个进程的状态可以是就绪 W(Wait)、运行R(Run)、或完成F(Finish)三种状态之一。 就绪进程获得 CPU后都只能运行一个时间片。用已占用CPU时间加1来表示。 如果运行一个时间片后,进程的已占用 CPU时间已达到所需要的运行时间,则撤消该进程,如果运行一个时间片后进程的已占用CPU时间还未达所需要的运行时间,也就是进程还需要继续运行,此时应将进程的优先数减1(即降低一级),然后把它插入就绪队列等待CPU。 每进行一次调度程序都打印一次运行进程、就绪队列、以及各个进程的 PCB,以便进行检查。 重复以上过程,直到所要进程都完成为止 -processor scheduling, the preparation of a process scheduling procedures, allowing a total of more than process the process scheduler. Process scheduling algorithm : Highest priority for priority scheduling algorithm (namely processors allocated to the highest priority in the process) and a first-come first-service algorithm . Each process is a process control block (PCB) said. Process control block may contain the following information : process, and a number of priority, arriving in time, the running time, CPU has spent time, the process of the state and so on. Several priorities for the process of the operation and needs time to be designated prior to artificially (and also by the random number generator). The arrival process for the importation process of time. The process of running t
Date
: 2025-12-29
Size
: 99kb
User
:
王山
[
OS Develop
]
ProcessScheduling
DL : 0
设计一个有 N个进程并行的优先级调度程序:每个进程有一个进程控制块( PCB)表示。进程控制块可以包含如下信息:进程名、优先数、到达时间、需要运行时间、已用CPU时间、进程状态等等。 进程的优先数及需要的运行时间可以事先人为地指定(也可以由随机数产生)。进程的到达时间为进程输入的时间。 进程的运行时间以时间片为单位进行计算。 每个进程的状态可以是就绪 W(Wait)、运行R(Run)、或完成F(Finish)三种状态之一。 就绪进程获得 CPU后都只能运行一个时间片。用已占用CPU时间加1来表示。 如果运行一个时间片后,进程的已占用 CPU时间已达到所需要的运行时间,则撤消该进程,如果运行一个时间片后进程的已占用CPU时间还未达所需要的运行时间,也就是进程还需要继续运行,此时应将进程的优先数减1(即降低一级),然后把它插入就绪队列等待CPU。 每进行一次调度程序都打印一次运行进程、就绪队列、以及各个进程的 PCB,以便进行检查。 重复以上过程,直到所要进程都完成为止。-Design of a parallel to the process N one priority scheduling process: Each process has a process control block (PCB) said. Process control block may contain the following information: process name, priority number, arrival time, need to run time, has spent CPU time, the process of the state and so on. The process priority number and needs of the running time can be artificially designated in advance (you can also by a random number generator). Process, the arrival time for the process input time. The process of running time to time slices are calculated as a unit. The state of each process can be ready W (Wait), run the R (Run), or the completion of F (Finish), one of three states. Ready access to CPU after the process can only run one time slice. CPU time has been occupied with the plus one indication of this. If you are running a time slice, after the process has been CPU-time has reached the required running time, then undo the process, if a time slice to run after the pr
Date
: 2025-12-29
Size
: 1kb
User
:
程天晨
[
OS Develop
]
os1
DL : 0
完成了“进程控制”。 其实验目的是, 1. 利用简单的结构和控制方法模拟进程结构、进程状态和进程控制。 2. 了解6个原语,创建进程(C),终止进程(e),唤醒进程(w),阻塞进程(b),调度进程(p),时间到(t) 3. 理解PCB的含义,PCB是进程存在的唯一标志,它记录着进程标识符,处理机状态,进程调度信息和进程控制信息 4. 掌握进程状态的转换 5.了解内存的分配和回收算法。 -Complete process control. Experimental purposes, (1) using a simple structure and control methods to simulate the process structure, process status and process control. Learn six primitives to create a process (C) to terminate the process (e), wake-up process (w), the blocking process (b), the scheduling process (p) time to (t) Understand the meaning of the PCB, the PCB is the only sign of the process, which records the process identifier of the processor state, process scheduling information and process control information Mastered the process of state transition 5 Memory allocation and recovery algorithm.
Date
: 2025-12-29
Size
: 3kb
User
:
pang
[
OS Develop
]
pcb
DL : 0
设计一个有N个进程并发的进程调度程序,采用时间片轮转算法。 Ø 每一个进程用一个进程控制块PCB表示。PCB包含信息有:进程名name,进程号id,进程状态state,进程所需运行时间need_time,进程运行时间run_time。 Ø 进程所需的运行时间人为指定。进程运行时间以时间片为单位进行计算。(程序中以按任意键表示运行一次CPU时间片) Ø 每个进程的状态有就绪W,运行R,和完成F(撤销进程)。 Ø 就绪的进程获得CPU后只能运行一个时间片,运行完运行时间run_time+1。 Ø 如果运行一个时间片后,进程的run_time等于need_time(即已经达到所需运行时间),则撤销该进程并提示,如果还未达到,则将其放到队尾,进入就绪状态等待下一次时间片分配。每一次调度程序都打印一次运行情况,包括:运行的进程,就绪队列的进程,已经所有进程的PCB(不包括已经撤销的进程)。 -The N processes concurrent process scheduler design a round-robin algorithm. Ø a process with a process control block PCB. The PCB contains information: the process name name, process ID id, process status "state" process required running time need_time process run time run_time. Ø process required for the running time of artificially specified. Process run time to the time slice as a unit to be calculated. Running a CPU time slice to press any key (program) Ready W, Ø the status of each process running R, and completion of the F (revoked process). The Ø -ready process to get CPU can run only one time slice, after running running time run_time+1. Ø If you run a time slice is equal need_time run_time process (that has reached the required run-time), the revocation of the process and prompts If you have not yet reached, then put it to the end of the queue to enter the ready state waiting for the next time slice allocation. Every scheduler
Date
: 2025-12-29
Size
: 1kb
User
:
拓拓
[
OS Develop
]
进程调度
DL : 0
进程调度算法:采用最高优先数优先的调度算法(即把处理机分配给优先数最高的进程)和先来先服务算法。 每个进程有一个进程控制块( PCB)表示。进程控制块可以包含如下信息:进程名、优先数、到达时间、需要运行时间、已用CPU时间、进程状态等等。 进程的优先数及需要的运行时间可以事先人为地指定(也可以由随机数产生)。进程的到达时间为进程输入的时间。进程的运行时间以时间片为单位进行计算。每个进程的状态可以是就绪 W(Wait)、运行R(Run)、或完成F(Finish)三种状态之一。就绪进程获得 CPU后都只能运行一个时间片。用已占用CPU时间加1来表示。 每进行一次调度程序都打印一次运行进程、就绪队列、以及各个进程的 PCB,以便进行检查。(Process scheduling algorithm: the highest priority number of priority scheduling algorithm (that is, the processor is assigned to the highest priority process) and first come first service algorithm. Each process has a process control block (PCB) representation. Process control blocks can contain the following information: process name, priority number, arrival time, run time, CPU time, process status, and so on. The priority number of the process and the required run time can be specified artificially (or by random numbers). The process's arrival time is the process's input time. The running time of a process is calculated as a time slice. The state of each process can be one of the three states of ready W (Wait), running R (Run), or completion of F (Finish). Once the ready process gets CPU, it can only run one time slice. Represented by taking CPU time plus 1. Each time the scheduler prints a run, a ready queue, and the PCB of each process for inspection.)
Date
: 2025-12-29
Size
: 1kb
User
:
寒修末
[
OS Develop
]
计算机操作系统实验三
DL : 0
进程调度算法:采用最高优先数优先的调度算法(即把处理机分配给优先数最高的进程)和先来先服务算法。 每个进程有一个进程控制块( PCB)表示。进程控制块可以包含如下信息:进程名、优先数、到达时间、需要运行时间、已用CPU时间、进程状态等等。 进程的优先数及需要的运行时间可以事先人为地指定(也可以由随机数产生)。进程的到达时间为进程输入的时间。进程的运行时间以时间片为单位进行计算。每个进程的状态可以是就绪 W(Wait)、运行R(Run)、或完成F(Finish)三种状态之一。就绪进程获得 CPU后都只能运行一个时间片。用已占用CPU时间加1来表示。 每进行一次调度程序都打印一次运行进程、就绪队列、以及各个进程的 PCB,以便进行检查。(Process scheduling algorithm: the highest priority number of priority scheduling algorithm (that is, the processor is assigned to the highest priority process) and first come first service algorithm. Each process has a process control block (PCB) representation. Process control blocks can contain the following information: process name, priority number, arrival time, run time, CPU time, process status, and so on. The priority number of the process and the required run time can be specified artificially (or by random numbers). The process's arrival time is the process's input time. The running time of a process is calculated as a time slice. The state of each process can be one of the three states of ready W (Wait), running R (Run), or completion of F (Finish). Once the ready process gets CPU, it can only run one time slice. Represented by taking CPU time plus 1. Each time the scheduler prints a run, a ready queue, and the PCB of each process for inspection.)
Date
: 2025-12-29
Size
: 233kb
User
:
yyyyyyyzh
CodeBus
is one of the largest source code repositories on the Internet!
Contact us :
1999-2046
CodeBus
All Rights Reserved.