Channels for sending multiple messages

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.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.145.73.207