Unit 3
Unit 3
M.A. Zahed
Lecturer
Unit III: Process Management
Process Management
⚫ Process Concept
⚫ Process Scheduling
⚫ Interprocess Communication
⚫ Examples of IPC Systems
Process Concept
⚫ Process – a program in execution;
⚫ Multiple parts
◦ The program code, also called text section
◦ Current activity including program counter, processor
registers
◦ Stack containing temporary data
● Function parameters, return addresses, local variables
◦ Data section containing global variables
◦ Heap containing memory dynamically allocated during run
time
Process Concept (Cont.)
⚫ Program is passive entity stored on disk
(executable file), process is active
⚫ Many-to-One
⚫ One-to-One
⚫ Many-to-Many
Many-to-One
⚫ Many user-level threads mapped to
single kernel thread
⚫ One thread blocking causes all to
block
⚫ Multiple threads may not run in
parallel on muticore system because
only one may be in kernel at a time
⚫ Few systems currently use this model
⚫ Examples:
◦ Solaris Green Threads
◦ GNU Portable Threads
One-to-One
⚫ Each user-level thread maps to kernel
thread
⚫ Creating a user-level thread creates a
kernel thread
⚫ More concurrency than many-to-one
⚫ Number of threads per process
sometimes restricted due to overhead
⚫ Examples
◦ Windows
◦ Linux
◦ Solaris 9 and later
Many-to-Many Model
⚫ Allows many user level threads to
be mapped to many kernel threads
⚫ Allows the operating system to
create a sufficient number of kernel
threads
⚫ Solaris prior to version 9
Process Commands
Thank You..!!!