Difficulty: Easy
Correct Answer: the creation of a new process
Explanation:
Introduction / Context:
Fork is a classic UNIX/POSIX system call central to process management. Understanding it is crucial for systems programming, shell behavior, and concurrent execution models on UNIX-like operating systems.
Given Data / Assumptions:
Concept / Approach:
In POSIX, fork()
creates a child process by duplicating the parent's address space and execution context (with copy-on-write optimizations typically). The new process receives its own PID and resources as defined by the OS. It is not merely dispatching or priority management; it is process creation. Often, exec
follows fork
to overlay the child process with a new program image.
Step-by-Step Solution:
Verification / Alternative check:
Man pages for fork(2)
and OS textbooks consistently define fork as process creation with a duplicated execution context.
Why Other Options Are Wrong:
Common Pitfalls:
Final Answer:
the creation of a new process.
Discussion & Comments