Skip to content
We areTOP 1%
Operating Systems · Beginner · Topic 2 of 3

Processes & Threads

5 questions.
Your progress0%
1st Visit
0/5
2nd Visit
0/5
Revise
0/5

Overview

A process is a program in execution, with its own memory and resources, while a thread is a lighter unit of execution that shares the memory of its process. The operating system tracks each process in a process control block and moves it between states such as ready, running and waiting, switching the CPU from one to another with a context switch. On Unix-like systems, new processes are created with fork(), given a new program with exec(), and collected by their parent with wait() when they finish. Expect questions on process versus thread, the state diagram, the cost of a context switch, fork() output puzzles, and zombie and orphan processes.

Questions

Sign in to track your progress

Your checkboxes, streak and activity heatmap are saved to your account and sync across devices. It is free.
Sign in with email

New here? Create an account