progress graph

**Progress graphs** are a simple model for a certain aspect of concurrency theory in Computer Science. The basic idea is to give a description of what can happen when several processes are modifying shared resources. Given a shared resource, $a$, we consider it as a semaphore which controls its behaviour with respect to processes. (This is a bit like the counter or token used in some old single track railway systems to prevent two trains being on the same stretch of line at the same time.) We are not worried exactly how the resource is used merely the ‘locking’ and ‘unlocking’ of the access to that resource. For instance, $a$ may be a shared variable, so a semaphore is used to ensure that only one process can write on it at a time. (Editing pages in the n-Lab is another example!)

Our system will have $n$ deterministic sequential processes ${Q}_{1},\dots ,{Q}_{n}$ Each will be abstracted as a sequence of ‘locks’ (denoted $P$) or ‘unlocks’ (denoted $V$) applied to shared resources (denoted $a$ with suffices and superfixes to distinguish them), so ${Q}_{i}={R}^{1}{a}_{i}^{1}.{R}^{2}{a}_{i}^{2}\dots {R}^{{n}_{i}}{a}_{i}^{{n}_{i}}$, as so one. Here each $R$ is an occurrence of a $P$ or a $V$.

There is a natural way to understand the possible behaviours of the concurrent execution of these processes. We associate to each process a different coordinate direction in the topological space, ${\mathbb{R}}^{n}$. The state of the system corresponds to a point in ${\mathbb{R}}^{n}$ whose ${i}^{\mathrm{th}}$ coordinate describes the state or ‘local time’ of the ${i}^{\mathrm{th}}$ process.

We assume that each process starts at (local time) 0 and finishes at (local time) 1; the $P$ and $V$ actions correspond to sequences of real numbers between 0 and 1, which reflect the order of the $P$s and $V$s. The initial state is $(0,\dots ,0)$ and the final state $(1,\dots ,1)$.

To look at a particular example more closely, we suppose $n=2$ and the two processes look like ${T}_{1}=Pa.Pb.Vb.Va$ and ${T}_{2}=Pb.Pa.Va.Vb$. This gives rise to the two dimensional progress graph below:

The shaded area in the picture represents those states that correspond to ‘mutual exclusion’. Suppose we look at a state $(x,y)$ with $\mathrm{Pb}<x<\mathrm{Vb}$, but $\mathrm{Pb}<y<\mathrm{Vb}$. In such a state, both ${T}_{1}$ and ${T}_{2}$ have acquired $b$ and not yet relinquished it, which is impossible since $b$ can only be viewed by at most on process at any time. Such states are in the **forbidden region**.

The PV language was introduced in 1968 by E. W. Dijkstra? as an example of a toy language allowing concurrent execution of sequential processes . The PV language offers only two instructions called $P$ and $V$ as abbreviations for the Dutch terms *Prolaag*, short for *probeer te verlagen*, literally “try to reduce,” and *Verhogen* (“increase”).

Let $S$ be a set whose elements are called the *semaphores*. Each semaphore *s* is associated with an *arity* that is an integer ${\alpha}_{s}\ge 2$. We suppose that for each integer $\alpha \ge 2$, there exist infinitely many semaphores whose arity is $\alpha $. The only instructions are $P(s)$ and $V(s)$, where $s$ is some semaphore. The terms, $\mathbb{P}$, of the language, called *processes*, are the finite sequences of instructions. When $\mathbb{P}$ is a process and $j$, an integer less or equal to the length of $\mathbb{P}$, we denote by $\mathbb{P}(j)$ the ${j}^{\mathrm{th}}$ instruction of the process, in particular $\mathbb{P}(1)$ is the first instruction.

We will separate the instructions of a process by a dot, mostly in order to make them easier to read. For example we have the processes

$$P(a).V(a)$$

$$P(a).P(b).V(a).V(b)$$

as we discussed more informally earlier.

A **PV program** is a finite sequence of processes separated by the operator $\mid $, which should be read *run concurrently with*.

For instance, $P(a).V(a)\mid P(a).V(a)$ is an example of a PV program made of two copies of a process, whilst

$$P(a).P(b).V(a).V(b)\mid P(b).P(a).V(b).V(a)$$

is an example made of two distinct processes.

(To be continued.)

This entry is partially adapted from the treatment of the idea in the following paper:

and from

- Emmanuel Haucourt, Concurrency and Directed Algebraic Topology, Notes École Polytechique, Jan. 2010.

Revised on December 3, 2010 18:32:04
by Tim Porter
(95.147.238.58)