Question: Write a C program in which you will take number of series as input from the command line and you will pass n/3 number to
Write a C program in which you will take number of series as input from the command line and you will pass n/3 number to each thread. One thread will calculate sum of series. One thread will calculate average of series. One thread will calculate Median of series
Output:
./task1.out 3 4 5 6 7 8 9 10 11 Thread 1 Loading...
3,4,5 reading...
Sum is 12
Thread 2 Loading....
6,7,8 reading...
Average is 10.5
Thread 3 Loading....
9,10,11 reading...
Median is 10
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
