Process Model and IPC Interview questions

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

Brief about the initial process sequence while the system boots up?

While booting, special process called the 'swapper' or 'scheduler' is created with Process-ID 0. The swapper manages memory allocation for processes and influences CPU allocation. The swapper inturn creates 3 children:

1.The process dispatcher,

2.vhand and


with IDs 1,2 and 3 respectively.

This is done by executing the file /etc/init. Process dispatcher gives birth to the shell. Unix keeps track of all the processes in an internal data structure called the Process Table (listing command is ps -el).

Next 5 interview question(s)

What are various IDs associated with a process?
Explain fork system call?
Predict the output of the following program code?
List the system calls used for process management?
How can you get/set an environment variable from a program?