Lectern

Search

Search IconIcon to open search

Process management

Last updated Oct 31, 2022

The state of managing active processes running in a computer system.

# Terminologies

TermDefinition
Arrival time (AT)The time a process arrives at the ready queue
Burst time (BT)The estimated time for the CPU to execute a process
Finish time (FT)The absolute time a process has finished executing
Turnaround time (TT)The total time between a process’s arrival time and finish time ($TT = FT - AT$)
Waiting time (WT)The total time a process waits to be executed ($WT = TT - BT$)
ThroughputThe number of processses completed per unit time

# Scheduling schemes

A process scheduler is a component that arranges and queues processes to be executed by a single CPU. Its main roles are to:

# Allocation schemes

Different managers will schedule and execute processes in different scheduling schemes that they support. Popular schemes include:

SchemeDefinition
First-come first-serveA scheduling algorithm where tasks are enqueued and the process at the front of the queue is run.
Round robinA scheduling algorithm similar to first-come first-serve, but rotates across the processes.

Allocation schemes have a direct impact on the efficiency of the CPU. No single allocation scheme is optimal; each has its own design goals. There are two kinds of allocation schemes:

# Benefits and disadvantages

# States

Processes can exist in four different states:

# Commands

WindowsLinuxDescription
tasklistpsLists the curerntly running processes in a computer
taskkillkillStops (kills) a running process, usually the given process