CS FundamentalsHardGATE CS · Product-company placement
Which statements are correct? 1. A child that has exited but whose parent has not called wait() is a zombie. 2. A zombie still holds its full memory image until it is reaped. 3. When a parent exits first, its running children are re-parented to init (or a subreaper). 4. Killing a zombie with SIGKILL removes it.
- A. 1 and 3 only
- B. 1, 2 and 3 only
- C. 1, 3 and 4 only
- D. All four
Correct answer: A. 1 and 3 only
A zombie keeps only its process-table entry and exit status, not its memory, so 2 is false. It is already dead and cannot be killed; it disappears when the parent (or init after re-parenting) calls wait(), so 4 is false.
More Operating Systems questions
- The reference string at times 1–12 is 3, 5, 3, 8, 2, 5, 5, 9, 3, 9, 2, 2. With a working-set window Δ = 5 references, what are the…
- A device delivers data at 2 MB/s. Per-byte interrupts would cost 5 µs each; instead DMA moves 4 KB blocks and raises one interrupt per…
- A TLB has 64 entries. A program randomly touches a 100 MB data set. What is the TLB reach with 4 KB pages and with 2 MB huge pages, and…
- A spin lock is built from an atomic test-and-set: while (TestAndSet(&lock)) ; / critical section / lock = false;. Which property does it…
- Processes (arrival, burst): P1 (0, 8), P2 (1, 4), P3 (2, 9), P4 (3, 5), P5 (6, 2). Under SRTF (preemptive SJF; a running process keeps the…
- Round Robin with quantum 3; processes (arrival, burst): A (0, 7), B (2, 4), C (4, 6), D (5, 3). A process arriving at the same moment…