Question: Modify the above code to compute the sum of a 1 0 0 0 x 1 0 0 0 array by spliting up the 4

Modify the above code to compute the sum of a 1000 x 1000 array by spliting up the 4 tasks in a different way. For example, you could have task1 sum the first 1/4 of rows, task2 sum the second 1/4 of rows, task3 sum the third 1/4 of rows and task4 sum the last 1/4 of rows. Submit your modified code via Canvas with your name/date/e-mail, an overview comment and program comments describing your approach for credit.
Hint: You don't have to be that creative. Try starting at different points rather than having everyone start at the beginning.
25 points.
Alternate:Read the following article on standard threads in C++:
4 Easy Tips for Using Threads and Mutexes in C++Better threading in your C++ programJosh WeinsteinMediumLinks to an external site.
Write a brief summary of the article including the four tips then alter the program under tip #3 to remove the mutex locks and describe the results.Alter the program to change to shorter wait times and describe the results.Alter both the mutex locks and the wait times and describe the results. Submit this third version to Canvas along with your notes for credit.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!