Operating Systems · Question 20 · Easy

In UNIX and Linux, which system call creates a new process that is a copy of the calling process?

  1. exec()
  2. wait()
  3. exit()
  4. fork()
Answer and explanation

Answer: D. fork()

Explanation: fork() creates a child process that is a duplicate of the parent. exec() replaces the current process image with a new program, and wait() makes a parent wait for a child to finish.

Previous: Belady's anomaly, where giving a process more page frames can increase its… · Next: A system has 3 page frames, all initially empty. For the page reference string…

Practise operating systems

Try a fresh set of operating systems questions with an explanation after every answer, free and without signing up: Operating Systems practice. Or sit a full placement mock test.

More operating systems questions

More technical & programming practice

Computer Networks · Software Engineering · Cloud & DevOps · GenAI Basics · Pseudo-code · C Programming · Java · Python

LogicWiz Exams home · All practice topics · Placement mock tests · Daily 10 challenge