How do OS-level Namespaces and Cgroups enable the isolation required for containers?

Last updated 5 July 2026

  • Namespaces partition what a process can see: its own PID tree, mount filesystem view, network interfaces, plus UTS, IPC, and user ID mappings.

  • Cgroups cap and account CPU, memory, and block I/O per process group. This stops a noisy container from starving others.

  • Both rely on the shared host kernel, so isolation is a kernel-enforced illusion. That makes containers lighter but less isolated than VMs.

  • https://growthequityinterviewguide.com/firms/b-capital
  • https://www.interviewbit.com/sre-interview-questions/
All Operating Systems interview questions