Process Model and IPC Interview questions

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

What are the process states in Unix?

As a process executes it changes state according to its circumstances. Unix processes have the following states:

  1. Running: The process is either running or it is ready to run
  2. Waiting: The process is waiting for an event or for a resource
  3. Stopped: The process has been stopped, usually by receiving a signal
  4. Zombie: The process is dead but has not been removed from the process table

Next 5 interview question(s)

What is a zombie?
How can a parent and child process communicate?
How can you get/set an environment variable from a program?
List the system calls used for process management?
Predict the output of the following program code?