Cardamom Planters’ association College, BODINAYAKANUR
Presented By
M.Neya Shree M.Sc.,
Guest Lecturer,
Department of CS &IT.
OPERATING SYSTEM
PROCESS MANAGEMENT
�Process Management�
The process management are divided into five. They are,
State Process
New−The process is being created.
Running−In this state the instructions are being executed.
Waiting −The process is in waiting state until an event occurs like I/O operation completion or receiving a signal.
Ready−The process is waiting to be assigned to a processor.
Terminated−The process has finished execution.
Process Control Block
The following are the data items
Process State
Process Identification Number
Program Counter
Registers
Process operations
Key Process Operations:
Process Creation:
The OS creates new processes, assigning them unique identifiers and allocating necessary resources.
Scheduling:
The OS determines the order in which processes are executed, ensuring fair access
to the CPU.
Termination:
When a process completes its execution or encounters an error, the OS terminates it, releasing the allocated resources.
Resource Management:
The OS manages and allocates resources like memory, I/O devices, and files to
processes, ensuring they have what they need.
Synchronization:
The OS coordinates the execution of multiple processes to prevent race conditions and ensure data integrity when accessing shared resources.
Communication:
The OS provides mechanisms for processes to communicate with each other,
enabling collaboration and information sharing.
Deadlock Handling:
The OS detects and resolves situations where multiple processes are stuck waiting for each other, preventing a system-wide freeze.
Suspend and Resume
Suspend:
applications, open files, and system settings to memory (RAM) or disk. The system
then enters a low-power state, potentially powering down some peripherals and slowing down the CPU.
Resume:
restores everything to its previous condition.
Key Benefits
Examples:
Manual Suspension: Many operating systems allow you to initiate suspend through a
menu option, a power button press, or a keyboard shortcut (e.g., Shift + Power).
Automatic Suspension: Some systems can automatically suspend after a period of
inactivity.
Suspend/Resume on Cloud Instances: Cloud providers like Google Cloud allow you to suspend and resume virtual machines (VMs), which can be useful for cost optimization
and resource management.
Context Switching
Example of Context Switching: