Download as ppt, pdf, or txt
Download as ppt, pdf, or txt
You are on page 1of 9

Operating Systems

Process and its


Administration

Dr. M. Tanvir Afzal


Process and its Administration

Process Administration
 Scheduler and Dispatcher.
 Scheduler maintains the record which
processes are present in the computer
system,
 Introduction of new processes.
 Removal of completed processes.

2
Process and its Administration

Scheduler
 Maintains a process table in main
memory.
 Process name, its ID, initiated by,
priority, starting time, duration memory
area (obtained from memory manager),
current state etc.

3
Process and its Administration

Dispatcher
 Component of Kernel that oversees the
process execution.
 Time sharing, multitasking,
multiprogramming,
 Time Slice in mili or microseconds.

4
Process and its Administration

Process Switch
 Context Switch.
 Procedure of changing from one process
to another.
 Dispatcher awards a time-slice,
activates the timer circuit which
generates an interrupt

5
Process and its Administration

Interrupt Handler
 When CPU receives an interrupt:
 Completes current machine cycle,
 Saves the current process
 Begin executing the program known
as Interrupt handler.

6
Process and its Administration

Interrupt Handler
 Part of dispatcher.
 Describer how the dispatcher should
respond.
 Preempt the current process
 Transfer control back to dispatcher.
 Dispatcher selects the process from
process table having highest priority
from ready queue, time slice and timer
7 circuit.
Process and its Administration

Multi-programming between Process A and


process B

8
Summary

Process and its administration


 Scheduler
 Dispatcher
 Context Switch
 Interrupt Handler

You might also like