Go Package atomic: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
No edit summary
Line 7: Line 7:
* [[Go Concepts - Standard Library#Packages|Standard Library]]
* [[Go Concepts - Standard Library#Packages|Standard Library]]
* [[Go Package sync|The "sync" package]]
* [[Go Package sync|The "sync" package]]
=Overview=
Package atomic provides low-level atomic memory primitives useful for implementing synchronization algorithms. These functions require great care to be used correctly. Except for special, low-level applications, synchronization is better done with [[Go Channels|channels]] or the facilities of the [[Go Package sync|sync package]]. Share memory by communicating; don't communicate by sharing memory.

Revision as of 17:26, 20 April 2016

External

Internal

Overview

Package atomic provides low-level atomic memory primitives useful for implementing synchronization algorithms. These functions require great care to be used correctly. Except for special, low-level applications, synchronization is better done with channels or the facilities of the sync package. Share memory by communicating; don't communicate by sharing memory.