Computer Science, asked by ajaydassmart33, 5 hours ago

The sum of all the elements of a 1000 x 1000 matrix has to be computed. The user should enter the number of threads to be spawned. The summation task has to be equally shared among all the threads. Ex., if the user specifies two threads, then each thread should sum up 500 x 1000 elements. The threads should return their individual sum values to the main thread where in the ultimate sum should be displayed. Write a multithreaded program to achieve this.​

Answers

Answered by mansoorshamira
0

Answer:

Answer

16 \frac{2}{3} = \frac{50}{3} = \frac{5}{3} \div 10 = \frac{5}{3} \times \frac{1}{10} = \frac{1}{6}16

3

2

=

3

50

=

3

5

÷10=

3

5

×

10

1

=

6

1

Hope you will like it.

Please mark me as Brainliest.

Similar questions