CS FundamentalsModerateGATE CS
Which of the following is TRUE about a zombie process?
- A. It is a process whose parent has terminated
- B. It is a process stuck in an infinite loop that ignores signals
- C. It consumes CPU time until it is killed with SIGKILL
- D. It has finished executing but still has a process-table entry holding its exit status until the parent calls wait()
Correct answer: D. It has finished executing but still has a process-table entry holding its exit status until the parent calls wait()
A zombie consumes no CPU and holds no memory beyond its PCB entry; it cannot be killed because it is already dead. Reaping by the parent (or init after adoption) removes it.
More Operating Systems questions
- A program has 5% serial code and runs on 16 cores. By Amdahl's law, what is the best speedup possible, and what is the limit as the number…
- A web server creates a new process per request using fork() (copy-on-write). Compared with creating a thread per request, which is the…
- vfork() differs from fork() in that:
- Which inter-process communication mechanism does NOT need the kernel to copy the data between the two processes for each message?
- A pipe has capacity 64 KB. A writer process writes 100 KB with a single write() call while no process ever reads from the pipe. What…
- A process ignores SIGINT and then calls exec() to run a new program. Which statement is correct?