Process Management
Process Management
Process
In execution
-
Program Process
Memory Layout
Environment
Variable
Stack region
Heap region
Un initialized
data
Initialized data
Text region
Program Process
- It is a passive entity - It is a active entity
- It is a static entity - It is a dynamic
entity
- It is a set of - When a program is
instructions to in execution is
perform a particular called as process
task
- Stored in - It is stored in main
secondary memory memory
- It is a set of process - Process is a part of
a program
- Occupy fixed - It changes
storage in memory according to its
execution
PROCESS STATE
1) New
2) Ready
3) Running
4) Waiting
5) Terminated
1) New State :- It is the beginning of the process.
Initially the process is created here so the system
creates a new process using Fork() system call. A
new process is created in this state.
2) Ready :-
3) Running :-
4) Waiting :-
Process state
Process
number
Program
counter
Register
Memory
management
information
List of opened
files
1) Process State :-
2) Process number :-
3) Program counter :-
- Program counter indicate the address of next
instruction to be executed
- It can store the address of the next instruction
4) Register :-
6) Accounting information :-
SCHEDULARS
Shared Memory
Message Passing :-
- Message passing involves sending and receiving
messages between processes
- In this there no need to share the address space
here messages are shared without requiring
address space
- Message passing is quite slower as compared to
shared memory because message passing
implemented by system call thus it requires more
time
- In message passing every message is shared
and received through kernel
- There is interaction of kernel in the message
passing
- Disadvantage :-
- Advantage:-
- Disadvantage:-
Advantage :-
Disadvantage :-
1) Each user thread mapped with separate kernel
thread
2) Need to create kernel thread according to user
thread
- Advantage :-
- Disadvantage :-