Skip to main content

Processes for Operating Systemss

Processes are running programs, each with its own address space, registers and open files. The OS virtualises the CPU by switching between processes through context switches, and a scheduler decides who runs next. Policies such as round robin or multilevel feedback queues trade response time against turnaround time.

Stage: Virtualisation of the CPU · Part of the Operating Systems roadmap · Last reviewed 19 November 2026

What to learn in Processes

Processes interview questions

What does fork do and what does it return?

fork creates a copy of the calling process. It returns the child's process ID to the parent and zero to the child, so code can branch on the result. The child usually calls exec to load a different program.

Why does round robin improve response time but hurt turnaround time?

Round robin gives each job a short time slice in turn, so every job starts quickly. But long jobs keep being interrupted and finish later than they would running alone, which raises average turnaround time compared with policies like shortest job first.

Where Processes fits in the Operating Systems roadmap

Processes belongs to the Virtualisation of the CPU stage (beginner level). Processes and scheduling.

Back to the full Operating Systems roadmap