Raniaaloun / Matrix-multiplication

you are asked to write two C code programs similar to assignment #4 to paralyze the computation of matrix multiplication. The first program divides the task among processes (children using fork() system call). The second program divides the task among threads using POSIX pthreal library. Let the dimensions of the two matrices, that are to be multiplied, be inputs by the user. Also the number of thread/children is an input from the user. Generate the numbers of the two matrices using the C function rand(). Let the range of the numbers in the matrices to be between 0 and 200. For example, if the user inputs for the dimensions of matrix A are 50 and 100, and the inputs for matrix B dimensions are 100 and 50, the result matrix dimensions should be 50 by 50 ( A × B). The numbers in matrix A and B are generated using the rand() function as mentioned before.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This repository is not active

About

you are asked to write two C code programs similar to assignment #4 to paralyze the computation of matrix multiplication. The first program divides the task among processes (children using fork() system call). The second program divides the task among threads using POSIX pthreal library. Let the dimensions of the two matrices, that are to be multiplied, be inputs by the user. Also the number of thread/children is an input from the user. Generate the numbers of the two matrices using the C function rand(). Let the range of the numbers in the matrices to be between 0 and 200. For example, if the user inputs for the dimensions of matrix A are 50 and 100, and the inputs for matrix B dimensions are 100 and 50, the result matrix dimensions should be 50 by 50 ( A × B). The numbers in matrix A and B are generated using the rand() function as mentioned before.