Operating systems · 1 min
Stop confusing zombie and orphan processes
Learn how zombie processes differ from orphan processes, what happens in the process table, and how parent processes and init handle exit statuses.
Practise Operating systemsMore videos
The quiz
What is a zombie process?
- A process whose parent has exited
- A process that has finished but whose exit status has not been collected by its parent
- A process stuck in an infinite loop
- A process using too much memory
Show the answer
B. A process that has finished but whose exit status has not been collected by its parent
Transcript
Interviewer ko zombie aur orphan process mix karke bataya toh turant reject hoge.
Child process finish hone ke baad apna exit status process table mein rakhta hai, jab tak parent process wait call nahi karta.
Zombie process execution finished kar chuka hai lekin status uncollected hai, jabki orphan process iska opposite hai jahan child running rehta hai.
Parent process killed hone par running child nahi marta, balki init use adopt karta hai aur uska exit status collect karta hai.
Yeh mat socho ki zombie high memory leta hai ya child die hota hai; parent wait call karta hai aur init orphans adopt karta hai.
Screen par question dekho: zombie process kya hota hai? Video pause karo, charon options dhyan se padho aur apna correct answer tap karo.
Correct answer Option B hai kyunki child finish ho chuka hai, jabki Option A asal mein ek orphan process ko describe karta hai.
Is comparison table ko interview revision ke liye save kar lo, aur operating system ke aise concepts InternDoor par practice karte raho.