Back to table

PAR test program

The following is a valid µOCCAM program. This is a test of paralel computing facilities provided by micro occam. This piece of code makes 3 assignements in parralel. These assignements have been chosen so that different results occur depending $ the order in which the statements are actually executed. once the assignments have been made the results are printed to the stdio c$

Program file: /public/cs3/web/ipptests/partest.accept
-- paralelism test

INT x:
INT y:
INT z:

    x := 50
    y := 50
    z := 50

    x := z + y
    y := x + z
    z := x + y
  stdout ! x
  stdout ! y
  stdout ! z