/explore

Click through on any links that interest you or select the planets on the right to continue exploring the Outer Web.
You are here

blog.jcoglan.com
| | timilearning.com

This post will contain some examples of good and bad Go code, using them to show common mistakes that can be made when starting to build concurrent programs, and how those can be corrected. It will cover goroutines, mutexes, condition variables, and channels.
2.8 parsecs

Travel
| |
| | golangbot.com

A Mutex is used to provide a locking mechanism to ensure that only one Goroutine is running the critical section of code at any point in time. Mutexes help avoid race conditions.
3.8 parsecs

Travel
| |
| | www.integralist.co.uk

Introduction Shared Memory Message Passing Various options Mutexes/Semaphores Mutex vs Semaphore Atomic operations STM Clojure example Quick Clojure Concurrency Detour JRuby example Actors Transactions and Actors? Actors in Clojure Differences between Agents and Erlang Actors Limitations CSP Threads What is CPU bound vs I/O bound? Calculating the number of Threads Even workload distribution Conclusion 2020.02.25 UPDATE: this post was written a long time ago and I realize now (upon reflection) that it dip...
4.8 parsecs

Travel
| |
| | zackoverflow.dev

The answer is "very often"
26.4 parsecs

Travel
|