A simple project to demonstrate the CPU Core management in C language.
Main libraries:
pthread.h
: Thread managementsched.h
: Processor afinity
This is a final project for the Information Systems program's "Operational Systems" course, in the Federal University of Uberlândia.
- Henrique Tornelli
- Gabriel Dal Belo
- João Vitor Izidoro
- Compile the matriz generator
$ gcc genMat.c -o genMat
- Use the matriz generator
# ./genMat [LINES] [COLUMNS] [LOWEST_NUMBER] [HIGHEST_NUMBER] [OUTPUT_FILE]
$ ./genMat 100 100 1 2 m.dat
$ ./genMat 100 100 1 2 n.dat
- Compile and execute the
v1.c
code
$ clear; gcc v1.c; ./a.out
- Compile and execute the
v2.c
code
$ clear; gcc v2.c -lpthread; ./a.out