OS-Process-Management
OS-Process-Management
Topperworld.in
Process management
What is a Process?
©Topperworld
Operating System
ProcessArchitecture:
©Topperworld
Operating System
• CPU registers: Like the Program Counter (CPU registers must be saved
and restored when a process is swapped in and out of the CPU)
• Accounts information: Amount of CPU used for process execution,
time limits, execution ID, etc
• I/O status information: For example, devices allocated to the process,
open files, etc
• CPU scheduling information: For example, Priority (Different
processes may have different priorities, for example, a shorter
process assigned high priority in the shortest job first scheduling).
Process State:
• Process is a program at the time of execution.
• A process is more than a program code.
• It includes the program counter, the process stack, and the contents of
the process register, etc.
• When a process executes, it changes the state.
• Generally, the state of the process determined by the current activity
of the process.
• In Operating System, Each process may be in one of the following
states:
©Topperworld
Operating System
©Topperworld
Operating System
©Topperworld
Operating System
©Topperworld
Operating System
©Topperworld
Operating System
©Topperworld
Operating System
©Topperworld