Intermediate
Go (Golang)
Q48 / 100
What is a sync.Pool?
Correct! Well done.
Incorrect.
The correct answer is B) A thread-safe cache of reusable objects to reduce GC pressure
B
Correct Answer
A thread-safe cache of reusable objects to reduce GC pressure
Explanation
sync.Pool stores temporary objects. Get() retrieves a pooled object; Put() returns it. The GC may collect pooled objects at any time.
Progress
48/100