Pakistan's best MCQs practice hub — FPSC · PPSC · CSS · NTS · Other Exams
Login

Which POSIX system call is used in Unix/Linux operating systems to create a new child process?

Aexec()
Bfork()
Cwait()
Dexit()

Explanation

The fork() system call creates a duplicate child process identical to the parent process. It returns 0 to the child and the child’s PID to the parent process. exec() replaces the current process image with a new program.

Exam Relevance
  • Topic: Operating Systems
  • Subtopic: System Calls & Unix
Submitted by: mcqstutor Team More Computer MCQs →

No Comments

Leave a comment

Your email address will not be published. Required fields are marked *