Question: Hello Chegg! I am working on a project to write a parallel program that will run N threads that can sum an array of 100000
Hello Chegg!
I am working on a project to write a parallel program that will run N threads that can sum an array of 100000 elements. those elements come from an array.txt file. I have attached my current work so far.
If you can help me figure out how to get this code to work for when N = 1, 4 and 8 that would be appreciated with a like.
in the image i attached the correct sum is given when N=1 but the other values are incorrect. the answer should be -5762.213221.

Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
