Question: 3. Given the serial code that finds the minimum of an array, convert the code into a parallel program create at least three threads and

3. Given the serial code that finds the minimum of an array, convert the code into a parallel program create at least three threads and use them to find the min of the elements of the array given in the code. Submit your code. / given the array jatW a { 4, 3, 1, 6, 8, 9, 100, 23, 13, 44, 14, 67, 89, 34, 23, 69, 1, 65, 32, 33, 4 ,5 ,6 ,18 // start min from a random big number it min = 1000; /I adds every item of the array to the sum for if (min > alii min = a[
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
