Back to table

PAR variable access test

The following is a valid µOCCAM program that performs I/O. This short program checks that spawned processes can access variables declared in their parent.

Program file: /public/cs3/web/ipptests/PAR_test.io

INT a :
SEQ 
  stdin ? a
  PAR
    stdout ! a

When provided with this input: /public/cs3/web/ipptests/PAR_test.in

6

it should generate the following output: /public/cs3/web/ipptests/PAR_test.out

==> 6