Communicating sequential process
Communicating Sequential Processes is a formal concurrency model in which independent sequential processes communicate through channels by exchanging messages.
Go in Action, Second Edition
Communicating sequential processes is a formal model of concurrent computation in which independently executing processes communicate through message-passing channels.
- How it is used
- Motivates Go’s built-in concurrency model as a way to coordinate independent work through messages.
- How deep it goes
- Defines CSP and illustrates its Go expression through channel operations and feed-processing code, without developing the formal model.
- Examples
- Uses concurrent feed fetching and article storage to demonstrate channel-based communication.
- What you can do after
- Apply it via Go goroutines and channels to pass values between concurrent functions.
Read how Go in Action, Second Edition explains communicating sequential process →
Learn Concurrent Programming with Go
Communicating sequential processes (CSP) is a formal concurrency model in which isolated sequential processes interact by exchanging messages through synchronized channels.
- How it is used
- Models concurrent Go programs as isolated goroutines communicating and synchronizing through channels.
- How deep it goes
- Defines isolated state, copied messages, synchronized channels, Go differences, and common channel patterns, while deferring deeper CSP detail.
- Examples
- Uses concurrent Go application diagrams and channel patterns including quit, pipeline, fan-in, fan-out, and broadcast.
- What you can do after
- Apply CSP-style concurrency in Go using goroutines, channels, pipelines, shutdown signals, and channel composition patterns.
Read how Learn Concurrent Programming with Go explains communicating sequential process →
Also covered in
What to know first
- GoGo is a statically typed, compiled, general-purpose programming language with garbage collection and built-in support for concurrency.
- race conditionA race condition is a concurrency defect in which program behavior or results depend on the timing or ordering of interacting operations.
- goroutineA goroutine is a lightweight function execution unit managed by the Go runtime that runs concurrently with other program activity.
- synchronizationSynchronization is the coordination of concurrent activities, events, or system states to establish required ordering, alignment, access, or consistency relationships.
Related concepts
- message passinguses · Message passing is a communication technique in which independent entities exchange explicit messages to transmit information, coordinate computation, or update state.
- concurrency modelkind of · A concurrency model is a set of abstractions and rules for representing, coordinating, scheduling, and executing computations that can progress concurrently.
- functional programmingalternative to · Functional programming is a programming paradigm that expresses computation through the evaluation and composition of functions, typically favoring immutable data and minimizing mutable state and side effects.
- Goimplemented by · Go is a statically typed, compiled, general-purpose programming language with garbage collection and built-in support for concurrency.
- shared memorycontrasts with · Shared memory is a memory region accessible to multiple processes, threads, or other concurrent execution contexts for sharing data.
- coroutinekind of · A coroutine is a computation that can suspend and later resume execution while retaining its state, enabling cooperative transfer of control.
Questions about communicating sequential process
What is communicating sequential process?
Communicating Sequential Processes is a formal concurrency model in which independent sequential processes communicate through channels by exchanging messages.
Which Manning books explain communicating sequential process?
Go in Action, Second Edition and Learn Concurrent Programming with Go.
What should I know before learning communicating sequential process?
Manning books that teach communicating sequential process usually introduce Go, race condition, goroutine and synchronization first.
What is the difference between communicating sequential process and functional programming?
Communicating Sequential Processes is a formal concurrency model in which independent sequential processes communicate through channels by exchanging messages. Functional programming is a programming paradigm that expresses computation through the evaluation and composition of functions, typically favoring immutable data and minimizing mutable state and side effects.
What is communicating sequential process a kind of?
Communicating sequential process is a kind of concurrency model. A concurrency model is a set of abstractions and rules for representing, coordinating, scheduling, and executing computations that can progress concurrently.
What is communicating sequential process also called?
Communicating sequential process is also called CSP.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.

