Process Model and IPC Interview questions


Total available count: 17
Subject - Operating System
Subsubject - Process Model and IPC

What is a zombie?

When a program forks and the child finishes before the parent, the kernel still keeps some of its information about the child in case the parent might need it - for example, the parent may need to check the child's exit status. To be able to get this information, the parent calls `wait()'; In the interval between the child terminating and the parent calling `wait()', the child is said to be a `zombie' (If you do `ps', the child will have a `Z' in its status field to indicate this).




Next 5 interview question(s)

1
How can a parent and child process communicate?
2
How can you get/set an environment variable from a program?
3
List the system calls used for process management?
4
Predict the output of the following program code?
5
Explain fork system call?