Skip to main content Accessibility help
×
Hostname: page-component-5b777bbd6c-2hk6m Total loading time: 0 Render date: 2025-06-25T09:31:45.171Z Has data issue: false hasContentIssue false

4 - Sharing

Published online by Cambridge University Press:  12 June 2025

Simon J. Gay
Affiliation:
University of Glasgow
Vasco T. Vasconcelos
Affiliation:
Universidade de Lisboa
Get access

Summary

The previous chapters present a linear world in which each channel endpoint is possessed by exactly one thread. Linearity allows precise control of interference and that can be useful. If two processes engage in a series of consecutive message exchanges then we can be sure that messages are not sent to or received from foreign processes. Although linearity is often convenient, it can also be detrimental in concurrent systems. Purely linear systems cannot describe e-commerce interactions where a server (or a pool of servers) is expected to serve a much larger number of clients. Linear systems also fail to describe an auction, where at the end, only one bidder is to get the item for sale. This chapter introduces a type discipline that provides for channels that can be shared and consequently for processes that compete for resources, thus creating race conditions and nondeterminism. We do this in such a way that we do not need to revisit process formation or process reduction, and process typing only requires mild changes. We define the language and type system as extensions of those in Chapter 3.

Type
Chapter
Information
Session Types , pp. 72 - 98
Publisher: Cambridge University Press
Print publication year: 2025

Access options

Get access to the full version of this content by using one of the access options below. (Log in options will check for institutional or personal access. Content may require purchase if you do not have access.)

Book purchase

Temporarily unavailable

Save book to Kindle

To save this book to your Kindle, first ensure no-reply@cambridge.org is added to your Approved Personal Document E-mail List under your Personal Document Settings on the Manage Your Content and Devices page of your Amazon account. Then enter the ‘name’ part of your Kindle email address below. Find out more about saving to your Kindle.

Note you can select to save to either the @free.kindle.com or @kindle.com variations. ‘@free.kindle.com’ emails are free but can only be saved to your device when it is connected to wi-fi. ‘@kindle.com’ emails can be delivered even when you are not connected to wi-fi, but note that service fees apply.

Find out more about the Kindle Personal Document Service.

  • Sharing
  • Simon J. Gay, University of Glasgow, Vasco T. Vasconcelos, Universidade de Lisboa
  • Book: Session Types
  • Online publication: 12 June 2025
  • Chapter DOI: https://doi.org/10.1017/9781009000062.005
Available formats
×

Save book to Dropbox

To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Dropbox.

  • Sharing
  • Simon J. Gay, University of Glasgow, Vasco T. Vasconcelos, Universidade de Lisboa
  • Book: Session Types
  • Online publication: 12 June 2025
  • Chapter DOI: https://doi.org/10.1017/9781009000062.005
Available formats
×

Save book to Google Drive

To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Google Drive.

  • Sharing
  • Simon J. Gay, University of Glasgow, Vasco T. Vasconcelos, Universidade de Lisboa
  • Book: Session Types
  • Online publication: 12 June 2025
  • Chapter DOI: https://doi.org/10.1017/9781009000062.005
Available formats
×