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 x array by spliting up the tasks in a different way. For example, you could have task sum the first of rows, task sum the second of rows, task sum the third of rows and task sum the last of rows. Submit your modified code via Canvas with your namedateemail, 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.
points.
Alternate:Read the following article on standard threads in C:
Easy Tips for Using Threads and Mutexes in CBetter 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 # 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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
