Communicating Sequential Processes

We talk about different concurrency models and although there are several, two of them standout for being easy to reason about and relatively bug free. Those are CSP(Communicating Sequential Processes) and Actor Model. In this article, we will talk about CSP and how it handles concurrency. Thread-based Concurrency Thread-based concurrency is the model that all programming languages usually implement. At its core it uses threads which are similar to OS level processes but share the memory, file and network resources of the parent process. Operating system schedules the threads and handles the multiplexing between the different threads. In this model, programming languages usually do not handle the scheduling of the threads. ...

April 6, 2025 · 5 min