Which condition occurs when multiple processes access and manipulate shared data...
Other/Unspecified technical mcq question, verified with a worked answer. Free to practise - no sign-up.
Which condition occurs when multiple processes access and manipulate shared data concurrently, and the final result depends on the specific order in which instructions execute?
Show answer & explanation
Answer: A. Race condition
A race condition occurs when concurrent execution threads access shared state, and the outcome is non-deterministic depending on scheduling order.
Step-by-step Derivation:
Step 1: When concurrent processes access shared variables without synchronization, thread scheduling interleaves operations.
Step 2: The non-deterministic dependency on execution timing is defined as a race condition.