Chapter-III Process Management
Chapter-III Process Management
Chapter-III Process Management
OSY - 22516
UNIT-III
PROCESS MANAGEMENT
• A process includes:
– program counter
– stack
– data section
PROCESS
• PROCESS IN MEMORY
PROCESS STATES
• PROCESS STATES
• User can interact with each process running on system & can
know the current status (completed, paused or suspended )
remove the process from memory and make space for other processes, the
called swapping, and the process is said to be swapped out or rolled out.
– Information sharing
– Computation speed-up
– Modularity
– Convenience
INTER PROCESS COMMUNICATION
• Cooperating processes requires interprocess communication (IPC)
mechanism that will allow them to exchange data and information.
• Shared memory resides in the address space of the process creating the
shared memory region segment.
• They can exchange information by reading & writing data in shared area.
INTER PROCESS COMMUNICATION
• MESSAGE PASSSING SYSTEM
• There are 3 types of message passing
• 1. Direct communication
SOURCE P MESSAGE
SOURCE Q
INTER PROCESS COMMUNICATION
• MESSAGE PASSSING SYSTEM
• 2. Indirect communication
MESSAGE
INTER PROCESS COMMUNICATION
• MESSAGE PASSSING SYSTEM
• 3. Synchronization
– Blocking send has the sender block until the message is received
– Non-blocking send has the sender send the message and continue
TYPES OF THREADS