Os Moduletwo - Process Management (Part One)
Os Moduletwo - Process Management (Part One)
PROCESS MANAGEMENT
Dr.ARIVUSELVAN.K
Associate Professor – (SITE)
VIT University
Program
Program in Execution
STACK: Holds
=> Local variables
=> Temporaries & Procedure Calls
=> Return addresses
EXAMPLE
EXAMPLE
Hello Students
Welcome to OS
Operating Systems
STACK Frame
Stack Vs Heap
PROGRAM PROCESS
Active Entity
Passive Entity
{Contains program counter,
{Content of file stored on
specifying next instruction to
disk}
execute}
Process Identification
Process State
Information PCB
Process Control
Information
User Stack
User Address Space
(Code& Data)
Shared Address Space
Running Ready
Running process has expired his time slot
Running Waiting
An access to a resource not yet available
Waiting Ready
(1) Trap :
An error resulted from the last instruction–(it may cause the process to be
moved to terminated state)
(2) Interrupt:
Update the PCB of the running process with its new state and other
associate information
Why ?
How ?
Process
Program VS Process
Process Image
PCB
Process States
Process Creation
Process Termination
Process switching
Context Switching