The temporal semantics of concurrent programs

Amir Pnueli
1981 Theoretical Computer Science  
The formalism of Temporal Logic is suggested as an appropriate tool for formalizing the semantics of concurrent programs. A simple model of concurrent program is presented in which n protissors are executing concurrent n disjoint programs under a shared memory environment. The, semantics of such a program specifies the class of state sequences which are admissible as proper execution sequences under the program. The two main criteria which are required are (a) Each state is obtained from its
more » ... decessor in the sequence by exactly one processor performing an atomic instruction in its process. (b) Fair Scheduling: no processor which is infinitely often enabled will be indefinitely delayed. The basic elements of Temporal Logic are introduced in a particular logic framework DX. The usefulness of Temporal Logic notation in describing properties of concurrent programs is demonstrated. A construction is then given for assigning to a program P a temporal formula W(P) which is true on all proper execution sequences of P. In order to prove that a program P possesses a property R, one has only to prove the implications W(P) 3 R. An example of such proof is given. It is then demonstrat? that specification of t,he Temporal character of the program's behavior is absolutely essential f& the unambiguous understanding of the meaning of programming constructs.
doi:10.1016/0304-3975(81)90110-9 fatcat:ly6omswc6ndq7aj64d77fjkhre