Add mutex resources

* Update 109-mutext.md

* Update content/roadmaps/109-golang/content/101-go-advanced/109-mutext.md

Co-authored-by: Kamran Ahmed <kamranahmed.se@gmail.com>
pull/1685/head
Dương Văn Hà 2 years ago committed by GitHub
parent 54a6cde218
commit fd14df1a72
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      content/roadmaps/109-golang/content/101-go-advanced/109-mutext.md

@ -1 +1,5 @@
# Mutext
# 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.
<BadgeLink colorScheme="yellow" badgeText="Read" href="https://www.sohamkamani.com/golang/mutex/"> Using a Mutex in Go with Examples</BadgeLink>

Loading…
Cancel
Save