Programming Language Required: C
Write a multithreaded program in C (not c++)using the pthread library and dynamic memory(malloc) thatmultiplies two matrices together. The numbers in the matrices mustbe read in from a text file. The program should also check if thetwo matrices are capable of being multiplied together. The amountof threads used has to be dynamic. The user should be able tochoose how many threads they wish to use using the command line.Finally, the result must be stored in a text file.