CS FundamentalsModerateGATE CS
Containers (e.g. using Linux namespaces and cgroups) differ from virtual machines mainly because:
- A. Each container boots its own kernel
- B. All containers share the host kernel; namespaces isolate what they see and cgroups limit what they use
- C. Containers require a type 1 hypervisor
- 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
- A 1 GB process is swapped to a disk with 100 MB/s transfer rate and 10 ms latency. Approximately how long does a full swap out followed by…
- Interrupt-driven I/O vs polling: a device produces one byte every 1 ms and checking its status register costs 1 µs, while taking an…
- Which statement about DMA is correct?
- A spooler is used for a printer. Which deadlock condition does spooling break for the printer resource, and how?
- Semaphores s = 2, t = 0. Process X runs repeat 2 times { wait(s); print('A'); signal(t); } and Y runs repeat 2 times { wait(t)…
- Shared x = 0. Three threads each execute x = x + 1; once (load, add, store; no locking). What is the set of possible final values?