PREMIUM
Join our WhatsApp Channel
Daily MCQs, Past Papers & Jobs for PPSC, FPSC, CSS
Daily MCQs • Past Papers • Jobs for PPSC, FPSC, CSS
Join Channel

In Unix, which system call creates a new process?

A. Exec
B. Fork
C. Wait
D. Kill
Correct Answer: B. Fork

Correct answer: Fork. In Unix, fork creates a new process by duplicating the caller.

Background: The child is an almost exact copy of its parent and runs alongside it.

  • Exec: It replaces the current process, creating no extra process.
  • Wait: It makes a parent pause until a child finishes.
  • Kill: It ends a process, the opposite of creating one.

Did you know? Fork returns the child's ID to the parent and zero to the child.

Memory trick: Fork in the road: one process splits into two.

0 comments

Leave a Reply

Join Our WhatsApp Channel ×