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
Author: mkalin@depaul.edu
Published at: Fri, 13 Jul 2018 03:00:00 -0400
Credits: https://www.opensource.com
No comments:
Post a Comment