Study · Course Companion

Key Concepts Glossary

High confidenceansweredited by Cairni · 방금 · AIv1

Key Concepts Glossary

A quick-reference glossary of core terms covered in Weeks 3 and 5 of the Operating Systems course. Each term links to its dedicated topic page where available. OS Course Notes — Weeks 3 & 5.md


Processes & Threads

TermOne-line Definition
ProgramA passive executable stored on disk; not yet running.
ProcessAn active entity loaded into memory with its own address space (code, data, heap, stack).
PCB (Process Control Block)OS data structure tracking a process's state, program counter, registers, memory info, and open files.
Process StatesThe lifecycle a process moves through: *new → ready → running → waiting → terminated*.
Ready QueueThe queue of processes waiting to be assigned the CPU by the scheduler.
Context SwitchSaving the current process's state to its PCB and restoring the next process's state; considered pure overhead.
ThreadA unit of execution inside a process; threads share code, data, and heap but each has its own stack and registers.
MultithreadingRunning multiple threads within a process to gain responsiveness, resource sharing, economy, and multicore utilisation.
Race ConditionA synchronisation problem that occurs when multiple threads share resources without proper coordination.

CPU Scheduling

TermOne-line Definition
CPU SchedulingThe OS mechanism that decides which process in the ready queue gets the CPU next.
CPU UtilisationThe percentage of time the CPU is kept busy; a key scheduling goal to maximise.
ThroughputNumber of processes completed per unit of time; a key scheduling goal to maximise.
Turnaround TimeTotal time from process submission to completion; a key scheduling goal to minimise.
Waiting TimeTotal time a process spends sitting in the ready queue; a key scheduling goal to minimise.
Response TimeTime from submission until the first response is produced; important for interactive systems.
FCFS*First-Come, First-Served* — schedules processes in arrival order; simple but susceptible to the convoy effect.
Convoy EffectA long job at the front of the queue forces all shorter jobs to wait, raising average waiting time (FCFS weakness).
SJF*Shortest-Job-First* — runs the shortest burst next; minimises average waiting time but risks starvation and requires burst prediction.
StarvationA situation where a low-priority (or long) process is indefinitely delayed because higher-priority processes keep arriving.
Round Robin (RR)Gives each process a fixed time quantum in turn; good responsiveness but small quanta increase context-switch overhead.
Time QuantumThe fixed time slice allocated to each process under Round Robin scheduling.
Priority SchedulingRuns the highest-priority process first; starvation is mitigated by *aging*.
AgingA technique that gradually increases a waiting process's priority to prevent starvation.
Preemptive SchedulingThe OS can forcibly reclaim the CPU from a running process (e.g., Round Robin, preemptive SJF).
Non-preemptive SchedulingThe CPU is only released when the running process voluntarily gives it up.
Gantt ChartA bar chart used to visualise CPU scheduling order and calculate per-process waiting times.

See Also

  • Processes — deep dive into process concepts, states, and the PCB
  • Threads — threads, multithreading benefits, and synchronisation issues
  • CPU Scheduling — all scheduling algorithms explained with comparisons
  • Exam Prep — Midterm — checklist and practice questions for the midterm
  • Course Overview — full topic index and key dates
Made with CairniExplore public wikis →