Sample Outputs

Please study the outputs of these runs. Examples (A) and (B) are based on stm.c code given to you.

Your assignment is to extend stm.c to myStm.c to support multi-processing. Example (C) below illustrates what your myStm ought to output.

Example Command line Input Output Remarks
(A) stm -b 50 -d 1 fraction.stm Input A Output A stm is the code given to you
(B) stm -b 1000 -d 2 primes.stm Input B Output B stm is the code given to you
(C) myStm -d 2 fraction.stm primes.stm Input C Output C myStm should be your modified stm