diff --git a/content/roadmaps/109-golang/content/101-go-advanced/109-mutext.md b/content/roadmaps/109-golang/content/101-go-advanced/109-mutext.md index 7d91e533c..49702fbb1 100644 --- a/content/roadmaps/109-golang/content/101-go-advanced/109-mutext.md +++ b/content/roadmaps/109-golang/content/101-go-advanced/109-mutext.md @@ -1 +1,5 @@ -# Mutext \ No newline at end of file +# Mutex + +Go allows us to run code concurrently using goroutines. However, when concurrent processes access the same piece of data, it can lead to [race conditions](https://www.sohamkamani.com/golang/data-races/). Mutexes are data structures provided by the [sync](https://pkg.go.dev/sync/) package. They can help us place a lock on different sections of data so that only one goroutine can access it at a time. + + Using a Mutex in Go with Examples