Question
Which statement best describes an atomic variable?
Select an option. Your answer will be checked instantly.
Correct Answer: C. Its supported operations occur indivisibly with defined synchronization semantics
Explanation:
Atomic variables provide operations that other threads cannot observe halfway through.
They may store several data types and often support operations such as load, store, exchange, and compare-and-swap.
Leave a Reply