Examples of parallel and concurrent programming in C
Each C file in this repo is an example by itself, so you will need to compile and run them separatelly
Compiling
clang -Xpreprocessor -fopenmp -I/usr/local/include -L/usr/local/lib -lomp openmp_{{example}}.c -o openmp_{{example}}.out
Running
./openmp_{{example}}.out
gcc openmp_{{example}}.c -o openmp_{{example}}.out -fopenmp
Running
./openmp_{{example}}.out