Intermediate
Go (Golang)
Q58 / 100
What is atomic operations used for in Go?
Correct! Well done.
Incorrect.
The correct answer is B) Performing lock-free concurrent operations on integers and pointers without race conditions
B
Correct Answer
Performing lock-free concurrent operations on integers and pointers without race conditions
Explanation
atomic.AddInt64(&counter, 1) increments counter atomically without a mutex, using CPU compare-and-swap instructions.
Progress
58/100