Concurrent Programming, Autumn 2006, HW 2
These will be covered in practise session during the week 45, 6-10.11.2006.- Install jBACI (or BACI) into your own machine. If you install it in your departmental account, please install it in the file server so that you can run it later on from any departmental machine. This software will be used more later on.
Modify the C-- adding example add.cm so that, it has 4 prosesses each of them looping 25 times.- Execute your program with jBaci 10 times and write down the final results.
- What was the smallest, largest, and average result?
- What is correct result?
- How should you modify the main program so that the result would be always 100?
- Exercises 2.2 and 2.3 from text book [BenA06, p. 39]
- Exercise 2.4 from text book
- Assuming positive values for K, what are the possible final values?
- Implement it with jBACI with K-value 10. Run it 10 times. How do the results match your answer in part (a)?
- Exercise 2.5 from text book
- Exercise 2.9 from text book
Teemu Kerola 10.11.2006 16:15