1.

Which of the following system call is used for creating a new process?(a) read(b) fork(c) wait(d) newThis question was posed to me in my homework.My doubt is from Process Status:ps Command and Phases of a Process topic in division The Process of Unix

Answer»

Right option is (b) fork

Explanation: A process in UNIX is CREATED using fork() system call. It CREATES an exact COPY of the process that invokes it. Now there will be two processes, ONE parent process and one child process. The process which invokes the fork system call is called parent process and the new process created is called child process.



Discussion

No Comment Found

Related InterviewSolutions