Skip to content
Tech Atlas, home
Search
Esc
  • All roadmapsBrowse every learning path
  • ExploreFind a technology area
  • ProjectsGuided projects and builds
  • My AtlasYour learning dashboard
Skill

Processes & Threads

Create, coordinate and inspect processes and threads on Linux, and choose between them for a given workload.

Intermediate1 roadmap

4 objectives 6 steps about 135 min

Check what you know

The lessons are coming later. The knowledge check is ready now.

Take the knowledge check

This skill page is a public outline. Its lessons and knowledge check appear here as subject-matter experts approve them.

Learning objectives

  • Describe a process's address space, states and kernel bookkeeping, and inspect them with ps, top and /proc/<pid>.
  • Write programs that create and manage child processes with fork, exec and wait, without leaving zombie or orphaned processes.
  • Coordinate processes with signals and pipes, including handling SIGINT, SIGTERM and SIGCHLD safely.
  • Create threads with pthreads, explain what threads share and what they own, and compare the cost of threads and processes.

Lesson plan

6 steps, about 135 min · 0 of 5 lessons available so far

  1. Anatomy of a process: address space, descriptors and states Concept · 20 min · coming later
  2. Lab: watch processes live with ps, top and /proc/<pid> Lab · 20 min · coming later
  3. The fork-exec-wait pattern and the life of a zombie Worked example · 25 min · coming later
  4. Lab: signals and pipes - a two-process pipeline built by hand Lab · 30 min · coming later
  5. Threads: shared memory, private stacks and what clone() creates Concept · 20 min · coming later
  6. Check: process-control scenarios and a fork vs thread benchmark Knowledge check · 8 questions

Practise it

Write a C program runpar that runs N shell commands in parallel child processes, forwards SIGINT to all children, reaps every child and prints each exit status; then rebuild the worker pool with pthreads and compare start-up cost for 1,000 tasks.

Build it from scratch

Practice builds that exercise this skill by re-creating a real technology.

Browse 8 tutorials that practise it

References

Hard prerequisites

Unlocks

On these roadmaps

Progress and evidence for this skill are shared across all of them.