Lably
Skip to content

Session type

  • 1 min read
  • 3 chapters

Related on Lably

Through Type theory, Data type and Distributed computing

Session types are used to ensure desirable properties in concurrent and distributed systems, i.e. absence of communication errors or deadlocks, and protocol conformance.

Binary versus multiparty session types

Interaction between two processes can be checked using binary session types, while interactions between more than two processes can be checked using multiparty session types. In multiparty session types interactions between all participants are described using a global type, which is then projected into local types that describe communication from the local view of each participant. Importantly, the global type encodes the sequencing information of the communication, which would be lost if we were to use binary session types to encode the same communication.

Sign in to keep reading

2 more chapters are free with a Lably account.

More in Computing and communication