Process Model and IPC Interview questions


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

Explain fork system call?

The `fork()'  used to create a new process from an existing process. The new process is called the child process, and the existing process is called the parent. We can tell which is which by checking the return value from `fork()'. The parent gets the child's pid returned to him, but the child gets 0 returned to him.




Next 5 interview question(s)

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

Comments