To identify and resolve cache sharing issues, and see their effect on performance.
For this lab, you will work with the program 04-sharing.c. This is a version of the PI estimate program that works with four threads. The program splits the work into four threads, but does not achieve the expected speedup because of caching issues.
Your job for this lab is to fix this issue which will result in the program running at least twice as fast as it does now.
When you are finished, submit your modified program to Canvas. As a comment, include a brief description of what was causing the false sharing issue and how you fixed it.
Copyright © 2023 Ian Finlayson | Licensed under a Attribution-NonCommercial 4.0 International License.