Skip to content

umutkoksaldi/multithread-matrix-multiplication

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Multithreaded Matrix Multiplication

Description

This is a simple C program that takes in two arguments, the names of the files containing matrix_1 and matrix_2, and multiplies the two matrices by creating a thread for each row of matrix_1 and distributing the multiplication job among threads, thus increasing CPU utilization.

The matrices need to be contained in files in the following format:

row_count column_count
mat[0][0] mat[0][1] mat[0][2] . . .
mat[1][0] mat[1][1] mat[1][2] . . .
mat[2][0] mat[2][1] mat[2][2] . . .
.
.
.

An example of a 3 by 3 matrix supplied within the program would look like this:

3 3
1 2 3
4 5 6
7 8 9

About

A simple C program to parallelize matrix multiplication

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages