Golang channels in Java
◀ Home | 🏠 Home | Installing ► |
Communicating sequential processes are a set of concurrent processes or threads that are allowed to synchronize with each other by synchronizing their I/O. CSP’s form the basis of Golang’s go-routines and channels. You can read more about CSPs in Wikipedia.
A fundamental tenet of CSP’s which is often repeated is:
Do not communicate by sharing memory; instead, share memory by communicating.
This has interesting impact on the design of JaCh, as we’ll see in later phases.
Channels are a communication structure which can be written to or read from. A channel behaves like a conduit in which messages can flow from one end to another. A channel can be
Routines are the concurrent processes that synchronize with each other using channels as a communication mechanism.
◀ Home | 🏠 Home | Installing ► |