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)

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