Write a mulitithreaded program in C that does the following:Reads a large text file of numbers into an array. Then slices thearray and shares the slices amonst each thread evenly. Determinewhich of the numbers in the arrays are prime, then output them to anew text file. Also output to the text file the amount of numbersfound.
The program must have N number of threads (determined by userinput).
Many Thanks
Expert Answer
Answer to Write a mulitithreaded program in C that does the following: Reads a large text file of numbers into an array. Then slic…