Intermediate Go (Golang)
Q45 / 100

What is a sync.RWMutex?

Correct! Well done.

Incorrect.

The correct answer is B) A mutex that allows multiple concurrent readers but only one writer

B

Correct Answer

A mutex that allows multiple concurrent readers but only one writer

Explanation

RLock()/RUnlock() for read-only access; Lock()/Unlock() for writes. Many goroutines can RLock simultaneously; Lock waits for all readers to finish.

Progress
45/100