---

Locks versus channels in concurrent Go

Compare two ways to share information with goroutines, one using synchronized shared memory and the other using channels.