Beruflich Dokumente
Kultur Dokumente
1 OS System view
Process Concept
Process (task) active entity, which requires a set of resources, including a processor and special registers to perform its function.
A single instance of an executable program.
Understanding Operating Systems 2
keeps track of each process in memory. determines the state of each process: whether it is running, ready to run, or waiting for some event, such as I/O to be completed, in order to proceed. maintains tables that determine the current program counter, register values, assigned files and I/O resources, and other parameters for each process in memory. coordinates and manages message handling and process synchronization.
2. Process Scheduler
in charge of process scheduling.
Job Scheduler
High-level scheduler. Selects jobs from a queue of incoming jobs. Places them in process queue (batch or interactive), based on each jobs characteristics. Goal is to put jobs in a sequence that uses all systems resources as fully as possible. Strives for balanced mix of jobs with large I/O interaction and jobs with lots of computation.
Tries to keep most system components busy most of time.
Understanding Operating Systems 9
Process Scheduler
Low-level scheduler assigns the CPU to execute processes of those jobs placed on ready queue by Job Scheduler.
After a job has been placed on the READY queue by Job Scheduler, Process Scheduler that takes over.
Determines which jobs will get CPU, when, and for how long. Decides when processing should be interrupted. Determines queues job should be moved to during execution. Recognizes when a job has concluded and should be terminated.
10
Removes active jobs from memory to reduce degree of multiprogramming and allows jobs to be completed faster.
11
Admitted
Interrupt Exit
Finished
Ready
Job pool I/O or event completion Waiting Handled by Process Scheduler Handled by Job Scheduler
Running
Scheduler dispatch I/O or event wait
12
13
In multiprogramming environment, processor must be allocated to each job in a fair and efficient manner.
Requires scheduling policy and a scheduling algorithm. Eg. FCFS, SJF, SRTF, RR etc.
Understanding Operating Systems 14