Steps for this Lab:
var fac_cap : cap factorial fac_cap := create factorial
fa id := 1 to num_proc ->
create multiply_block(id, block_size)
af
const max_cap := 10 /* maximum number of processes possible */
var machine_cap[1:max_cap]: cap vm
#create new processes
fa i := 1 to num_proc ->
machine_cap[i] := create vm ()
af
fa id := 1 to num_proc ->
create multiply_block(id, block_size)
/* run as threads of same process */
af
How do these lines help generate the output?
fa id := 1 to num_proc ->
create multiply_block(id, block_size) on machine_cap[id]
/* run as multiple processes */
af
How do these lines help generate the output?
Work to be turned in:
For Lab 3:
For Lab 4:
This document is available on the World Wide Web as
http://www.math.grin.edu/~walker/courses/295/lab3.html