Skip to content

Testing how threads work in Linux with a simple matrix-multiplication program using Pthread library

Notifications You must be signed in to change notification settings

AhmedGaber/linux-threads-experiment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Linux-threads Experiment

A simple Matrix multiplication C program to test how threads work in Linux using the Pthread library. Read more about Pthread here.

###Compiling the code First, you need to clone the code into your local (or VM) machine as follows: git clone https://github.com/AhmedGaber/linux-threads-experiment.git

Then compile the code:

gcc -c main.c -o main.o 
gcc -c parser.c -o parser.o
gcc -pthread parser.o main.o -o matMultp

Then, run the program:

./matMultp PATH a.txt b.txt c.txt

where: PATH: is the files path a.txt: is the file containing the first matrix b.txt: is the file containing the second matrix c.txt: is the output file to write the result in.

About

Testing how threads work in Linux with a simple matrix-multiplication program using Pthread library

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published