Question: WRITE IN C USING LINUX LIBRARIS THE OS I AM USING IS UBUNTU Write a multithreaded program called MSquare.exe which takes 9 integer values from
WRITE IN C USING LINUX LIBRARIS THE OS I AM USING IS UBUNTU
Write a multithreaded program called MSquare.exe which takes 9 integer values from command line, stores those values in a 3x3 matrix, take a square of the matrix and prints the result. The program should fire off one thread for each row, i.e the program should create three threads and allocate the computation of one row to each thread. Dont provide a generic solution (because it is probably available somewhere on the net). I need a specific solution which works only for 3x3 matrix and with only three threads. A sample run of the program is given below.
nadeem@ubuntu:~/SP21/code$ ./MSquare.exe 1 2 3 4 5 6 7 8 9
Input matrix A is
1 2 3
4 5 6
7 8 9
AxA matrix is
30 36 42
66 81 96
102 126 150
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
