Write a multithreaded program that calculates variousstatistical values for a list of numbers. This program will bepassed a series of numbers on the command line and will then createthree separate worker threads. One thread will determine theaverage of the numbers, the second
will determine the maximum value, and the third will determine theminimum value. For example, suppose your program is passed theintegers
90 81 78 95 79 72 85 The program will report
The average value is 82 The minimum value is 72 The maximumvalue is 95
The variables representing the average, minimum, and maximumvalues will be stored globally. The worker threads will set thesevalues, and the parent thread will output the values once theworkers have exited. (We could obviously expand this program bycreating additional threads
that determine other statistical values, such as median andstandard deviation.) (You can use Java or C)