January 2019
Intermediate to advanced
520 pages
14h 32m
English
As a rule, channels are a one-way interaction primitive. A channel has a sender to send messages and a receiver to extract messages. Internally, a channel works as an array or list that is protected from data races (when two or more threads try to write the same memory cell) using an atomic flag or lock-free data types. Channels implement one of the queue access patterns we will discuss in the following sections.
Read now
Unlock full access