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

3.dbflush

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)

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

Comments