UNIX Operating System Question:
Download Questions PDF

Explain UNIX fork() system call.

Answer:

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.

Download UNIX Operating System Interview Questions And Answers PDF

Previous QuestionNext Question
What are various IDs associated with a process in UNIX OS?Predict the output of the following program code in UNIX?