CS FundamentalsModerateGATE CS

Containers (e.g. using Linux namespaces and cgroups) differ from virtual machines mainly because:

  1. A. Each container boots its own kernel
  2. B. All containers share the host kernel; namespaces isolate what they see and cgroups limit what they use
  3. C. Containers require a type 1 hypervisor
  4. D. Containers cannot limit CPU or memory usage

Correct answer: B. All containers share the host kernel; namespaces isolate what they see and cgroups limit what they use

A container is a set of isolated processes on one kernel, so it starts fast and is light, but a kernel bug affects all containers; a VM virtualises hardware and runs its own kernel.

More Operating Systems questions

Exams that ask this topic