Process Management: Robin Mathur Department of Computer Science & Engineering, Lpu
Process Management: Robin Mathur Department of Computer Science & Engineering, Lpu
ROBIN MATHUR
DEPARTMENT OF COMPUTER SCIENCE &
ENGINEERING ,LPU
Processes
Process Concept
Process Scheduling
Operations on Processes
Cooperating Processes
Interprocess Communication
Communication in Client-Server Systems
A process is a program under execution which is executed from
RAM and essentially comprises of various sections, such as the
Executable instructions, Stack, Heap and also a hidden section
known as the State
Process
Address space
Child duplicate of parent
Child has a program loaded into it
UNIX examples
fork system call creates new process
exec system call used after a fork to replace the process’
memory space with a new program
Process Termination
Process executes last statement and asks the operating system to
terminate it (exit)
Output data from child to parent (via wait)
Process’ resources are deallocated by operating system
Parent may terminate execution of children processes (abort)
Child has exceeded allocated resources
Task assigned to child is no longer required
If parent is exiting
Some operating system do not allow child to continue if its
parent terminates
– All children terminated - cascading termination
Cooperating Processes