Question
What is a critical section?
Select an option. Your answer will be checked instantly.
Correct Answer: A. A code region that accesses shared data or resources and must not be executed concurrently by conflicting threads
Explanation:
A critical section contains operations whose interleaving could corrupt shared state.
Synchronization ensures that incompatible executions do not overlap.
Leave a Reply