How do sync.Mutex and sync.RWMutex protect shared state?

Topic: golang, Concurrency. Level: Intermediate.

The full answer to this question is available to InterviewReader members. See what is free and what Premium adds.