Jump to content

Algebra of communicating processes

From Wikipedia, the free encyclopedia

Thealgebra of communicating processes(ACP) is analgebraicapproach to reasoning aboutconcurrent systems.It is a member of the family of mathematical theories of concurrency known as process algebras orprocess calculi.ACP was initially developed byJan BergstraandJan Willem Klopin 1982,[1]as part of an effort to investigate the solutions of unguarded recursive equations. More so than the other seminal process calculi (CCSandCSP), the development of ACP focused on the algebra of processes, and sought to create an abstract, generalized axiomatic system for processes,[2]and in fact the termprocess algebrawas coined during the research that led to ACP.[citation needed]

Informal description[edit]

ACP is fundamentally an algebra, in the sense ofuniversal algebra.This algebra is a way to describe systems in terms of algebraic process expressions that define compositions of other processes, or of certain primitive elements.

Primitives[edit]

ACP uses instantaneous,atomic actions() as its primitives. Some actions have special meaning, such as the action,which representsdeadlockor stagnation, and the action,which represents asilent action(abstracted actions that have no specific identity).

Algebraic operators[edit]

Actions can be combined to formprocessesusing a variety of operators. These operators can be roughly categorized as providing abasic process algebra,concurrency,andcommunication.

  • Choice and sequencing– the most fundamental of algebraic operators are thealternativeoperator (), which provides a choice between actions, and thesequencing operator(), which specifies an ordering on actions. So, for example, the process
first chooses to perform eitheror,and then performs action.How the choice betweenandis made does not matter and is left unspecified. Note that alternative composition is commutative but sequential composition is not (because time flows forward).
  • Concurrency– to allow the description of concurrency, ACP provides themergeandleft-mergeoperators. The merge operator,,represents the parallel composition of two processes, the individual actions of which are interleaved. The left-merge operator,,is an auxiliary operator with similar semantics to the merge, but a commitment to always choose its initial step from the left-hand process. As an example, the process
may perform the actionsin any of the sequences.On the other hand, the process
may only perform the sequencessince the left-merge operators ensure that the actionoccurs first.
  • Communication— interaction (or communication) between processes is represented using the binary communications operator,.For example, the actionsandmight be interpreted as the reading and writing of a data item,respectively. Then the process
will communicate the valuefrom the right component process to the left component process (i.e.the identifieris bound to the value,and free instances ofin the processtake on that value), and then behave as the merge ofand.
  • Abstraction— the abstraction operator,,is a way to "hide" certain actions, and treat them as events that are internal to the systems being modelled. Abstracted actions are converted to thesilent stepaction.In some cases, these silent steps can also be removed from the process expression as part of the abstraction process. For example,
which, in this case, can be reduced to
since the eventis no longer observable and has no observable effects.

Formal definition[edit]

ACP fundamentally adopts an axiomatic, algebraic approach to the formal definition of its various operators. The axioms presented below comprise the full axiomatic system for ACP(ACP with abstraction).

Basic process algebra[edit]

Using the alternative and sequential composition operators, ACP defines abasic process algebrawhich satisfies the axioms[3]

Deadlock[edit]

Beyond the basic algebra, two additional axioms define the relationships between the alternative and sequencing operators, and thedeadlockaction,

Concurrency and interaction[edit]

The axioms associated with the merge, left-merge, and communication operators are[3]

When the communications operator is applied to actions alone, rather than processes, it is interpreted as a binary function from actions to actions,.The definition of this function defines the possible interactions between processes — those pairs of actions that do not constitute interactions are mapped to the deadlock action,,while permitted interaction pairs are mapped to corresponding single actions representing the occurrence of an interaction. For example, the communications function might specify that

which indicates that a successful interactionwill be reduced to the action.ACP also includes an encapsulation operator,for some,which is used to convert unsuccessful communication attempts (i.e. elements ofthat have not been reduced via the communication function) to the deadlock action. The axioms associated with the communications function and encapsulation operator are[3]

Abstraction[edit]

The axioms associated with the abstraction operator are[3]

Note that the actionain the above list may take the value δ (but of course, δ cannot belong to the abstraction setI).

Related formalisms[edit]

ACP has served as the basis or inspiration for several other formalisms that can be used to describe and analyze concurrent systems, including:

References[edit]

  1. ^J.C.M. Baeten,A brief history of process algebra,Rapport CSR 04-02, Vakgroep Informatica, Technische Universiteit Eindhoven, 2004
  2. ^Bas Luttik,What is algebraic in process theory,Algebraic Process Calculi: The First Twenty Five Years and BeyondArchived2005-12-04 at theWayback Machine,Bertinoro, Italy, August 1, 2005
  3. ^abcdJ.A. Bergstra and J.W. Klop,ACPτ:A Universal Axiom System for Process Specification,CWI Quarterly 15, pp. 3-23, 1987
  4. ^P.J.L. Cuijpers and M.A. Reniers,Hybrid process algebra,Technical Report, Department of Mathematics and Computer Science, Technical University Eindhoven, 2003