Process vs. Threads - pi Estimator
Review the linked tutorial
Study and experiment with the following three example programs:
- π estimator using a single-worker-process: https://github.com/huichen-cs/OSClassExamples/tree/main/process/creation/linux
- Multi-processed π estimator: https://github.com/huichen-cs/OSClassExamples/tree/main/process/multiprocess/simulationapp
- Multithreaded π estimator: https://github.com/huichen-cs/OSClassExamples/tree/main/thread/pthread/piestimator
In a concise presentation: give a short presentation about your experiment. Besides your own free exploration, make sure to discuss:
- How do the these programs differ with regard to the design?
- What benefits can we derive from multi-processed and multithreaded design?
- Is there any benefit we cannot obtain from the multithreaded design, but we can from the multi-processed design, and vice versa?
- How do you relate the experiment results from running the multithreaded and multi-processed π estimators to Amdahl’s law?