Hardware interview practice
Reason about fork join_none and wait fork
One parent process launches three child threads with fork...join_none and later executes wait fork. What happens?
Choose one
Answer choices
- A. The parent continues at join_none, then wait fork blocks until all outstanding children spawned by that parent finish.
- B. The parent blocks at join_none until one child finishes.
- C. join_none kills every child as soon as the parent reaches the next statement.
- D. The parent continues at join_none, then wait fork returns when the first child finishes.
