Locks versus channels in concurrent Go

Full Article :

Opensource.com - https://opensource.com/article/18/7/locks-versus-channels-concurrent-go

Go has popularized the mantra don’t communicate by sharing memory; share memory by communicating. The language does have the traditional mutex (mutual exclusion construct) to coordinate access to shared memory, but it favors the use of channels to share information among goroutines.

read more

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: