Question: operation System File Organization. please answer asap. use Java please I have attached the sample code mentioned on the instruction. but please use Java 1.

![[5 pts] Write a multithreaded program that calculates various statistical information for](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f38e9154812_77666f38e90afe5e.jpg)
1. [5 pts] Write a multithreaded program that calculates various statistical information for a list of numbers. This program will be given a series of numbers via either the command line or an array in the code. Once it receives these numbers, it will then create three separate worker threads. One thread will determine the average of the numbers, the second will determine the maximum value, and the third will determine the minimum value. For example, suppose your program is given the following integers: 12753091495276 The program will report The average value is 55 . The maximum value is 91 . The minimum value is 12 . The variables for the average, maximum, and minimum values can be stored globally. The worker threads will set these values, and the parent thread will output the values once the workers have exited. Please use the sample code in the PowerPoint slides (p.22-23). \#include \#include \#include int sum; / this data is shared by the thread(s) */ void *runner (void *param); / * threads call this function * int main(int argc, char *argv []) \{ pthread t tid; / the thread identifier */ pthread attr_t attr; /* set of thread attributes */ /* set the default attributes of the thread */ pthread attr init (\&attr); * create the thread */ pthread create (\&tid, \&attr, runner, argv [1]); /* wait for the thread to exit */ pthread_join (tid, NULL); \} printf (" sum =%d ", sum ) /* The thread wil1 execute in this function */ void *runner (void *param) \{ int i, upper = atoi (param); sum =0; for (i=1;i
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
