Question
After fork() is called by one thread in a multithreaded process, which child behavior is common in POSIX systems?
Select an option. Your answer will be checked instantly.
Correct Answer: B. The child initially contains only a copy of the calling thread
Explanation:
POSIX fork semantics normally replicate only the thread that invoked fork into the child process.
This creates synchronization concerns because locks held by vanished sibling threads may remain copied.
Leave a Reply