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.
Leave a Reply
You must be logged in to post a comment.