[Paper Review] CCS: It's not Fair! Fair Schedulers cannot be implemented in CCS-like languages even under progress and certain fairness assumptions
This paper demonstrates that standard CCS-like process algebras cannot correctly express fair schedulers—such as those in Dekker’s and Peterson’s mutual exclusion protocols—without imposing external fairness assumptions. Even under progress and certain fairness conditions, CCS lacks the expressive power to capture the intended behavior of such schedulers, revealing a fundamental limitation in its ability to model fair concurrent systems without added semantics.
In the process algebra community it is sometimes suggested that, on some level of abstraction, any distributed system can be modelled in standard process-algebraic specification formalisms like CCS. This sentiment is strengthened by results testifying that CCS, like many similar formalisms, is Turing powerful and provides a mechanism for interaction. This paper counters that sentiment by presenting a simple fair scheduler---one that in suitable variations occurs in many distributed systems---of which no implementation can be expressed in CCS, unless CCS is enriched with a fairness assumption. Since Dekker's and Peterson's mutual exclusion protocols implement fair schedulers, it follows that these protocols cannot be rendered correctly in CCS without imposing a fairness assumption. Peterson expressed this algorithm correctly in pseudocode without resorting to a fairness assumption, so it furthermore follows that CCS lacks the expressive power to accurately capture such pseudocode.
Motivation & Objective
- To challenge the widely held belief that CCS can model any distributed system at an appropriate abstraction level.
- To demonstrate that fair schedulers, essential in distributed systems, cannot be correctly implemented in standard CCS.
- To show that even with progress and fairness assumptions, CCS remains insufficient for specifying fair behavior without external constraints.
- To highlight the expressive limitations of CCS in capturing protocols like Dekker’s and Peterson’s mutual exclusion algorithms.
- To argue that fairness assumptions in CCS should not be taken for granted, as they can lead to incorrect derivations in certain contexts.
Proposed method
- Formalizing a simple fair scheduler as a Petri net and proving its correctness using structural properties.
- Translating the Petri net model into a CCS process and analyzing its behavior under standard semantics.
- Applying fairness assumptions such as justness to evaluate whether they enable correct specification of the scheduler in CCS.
- Using logical specifications in LTL to characterize desired fairness properties and comparing them with CCS behavior.
- Constructing a CCS+LTL hybrid specification to isolate the need for fairness components.
- Proving that no standard CCS process can satisfy the required fairness conditions without external assumptions, by analyzing paths and enabling conditions in the labeled transition system.
Experimental results
Research questions
- RQ1Can a fair scheduler be correctly implemented in standard CCS without additional fairness assumptions?
- RQ2Why do Dekker’s and Peterson’s mutual exclusion protocols fail to be faithfully modeled in CCS?
- RQ3What are the limitations of CCS in expressing fairness properties inherent in concurrent systems?
- RQ4Can fairness properties expressed in LTL be fully captured within CCS without enriching the formalism?
- RQ5Is there a minimal extension of CCS that allows the specification of fair schedulers without relying on fairness assumptions?
Key findings
- No implementation of a fair scheduler can be expressed in standard CCS, even under progress and justness assumptions.
- Dekker’s and Peterson’s mutual exclusion protocols cannot be correctly rendered in CCS without imposing fairness assumptions.
- The paper proves that CCS lacks the expressive power to capture the intended behavior of fair schedulers as specified in pseudocode, such as in Peterson’s original description.
- A fair scheduler can be correctly specified in CCS only when enriched with stronger fairness assumptions or additional operators.
- The use of fairness assumptions in CCS can lead to incorrect derivations in certain contexts, suggesting caution in their application.
- Extending CCS with operators like priority or non-blocking reads enables correct specification of fair schedulers without relying on fairness assumptions.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.