Page 1 of 1

(C PROGRAM ONLY) Multi-thread in C programming - POSIX thread / pthread Write a multi-thread program to handle two matri

Posted: Fri Jul 08, 2022 6:37 am
by answerhappygod
(C PROGRAM ONLY)
Multi-thread in C programming - POSIX thread /pthread
Write a multi-thread program to handle two matrices, A and B.Randomly generate the content of matrix A and B with specifieddimension provided as two command arguments. Dimension of A and Bmust be the same. Then create three threads:
a. one thread will transpose the A and B
b. one thread will calculate addition of two matrices as C = A +B
c. one thread will calculate subtraction of two matrices as C =A - B
Also print out the results for each thread. Remember to allocatespace for C and the transposed A and B.