Visit the following useful resources:
-
The documentation page of the sync package, which can be found at https://golang.org/pkg/sync/.
-
The documentation page of the sync package once more. Pay close attention to the sync.Mutex and sync.RWMutex types that will appear in the next chapter.