Process Management Presentation
Process Management Presentation
MANAGEMENT
WHAT IS PROCESS MANAGEMENT?
• This is a data structure used by the OS to store all information about a process including:
- Process ID
• -Process state
• - CPU registers
• -Memory Management Information
• -Accounting Information(e.g CPU time)
• -scheduling information
• -program counter
• -security information
• -memory pointers
• -i/o status information
• The process keeps track of many important pieces of information needed to manage
processes efficiently.
• While creating a process, the OS performs several operations.
To identify processes, it assigns a process identification
number(PID)to each process. As the operating system supports
multi-programming, it needs to keep track of all the processes.
• For this task, the process control block(PCB) is used to track the
process’s execution status. Each block of memory contains
information about the process state, program counter, stack
pointer, status of opened files, scheduling algorithms.
• When the process makes a transition from one state to another,
the operating system must update information in the process’s
PCB.
Structures of the Control Block
PROCESS SCHEDULING
• A scheduler is a component that decides which process runs at any given time.
• The process scheduling is the activity of the process manager that handles the
removal of the running process from the CPU and the selection of another
process based on a particular strategy
• Scheduling falls into one of two categories:
• Non Preemptive- in this case, a process’s resource cannot be taken before the
process has finished running. When a running process finishes and transitions to
a waiting state, resources are switched.
• Preemptive- in this case, the OS assigns resources to a process for a
predetermined period. The process switches from running state to a ready state
or from a waiting state to ready state during resource allocation. This switching
happens because the CPU may give other processes priority and substitute the
currently active process for the higher priority
• Types of scheduling:
- Long term scheduling- this controls the admission of processes into
the system. It brings the new process to the ‘ready state’. It controls
the degree of multi-programming that is the number of processes
present in a ready state at any point in time.
• -Short Term Scheduling – decides which of the ready processes to
execute next(CPU scheduling). Note that this only selects the process
to schedule it dosen’t load the process on running. here is when all
the scheduling algorithms are used.
• - Medium-term scheduling- involves swapping processes in and out of
memory(used in virtual memory systems). It is responsible for
suspending and resuming the process.
Some other schedulers