This repository features PRS courses.
This repository contains a set of introductory exercises
to system programming under Linux
organized as follows:
Directories | Description |
---|---|
doc | Doxygen documentation of exercises (td-1 to td-6 ). |
doxygen | Doxygen configuration files. |
td-1 | Introductory exercises to inputs and outputs using system calls. |
td-2 | Introductory exercises to processes creation using system calls. |
td-3 | Introductory exercises to processes communication using system calls. |
td-4 | Introductory exercices to signals and stack manipulation using system calls. |
td-5 | Introductory exercises to threads using pthread . |
td-6 | Introductory exercises to OpenMP . |
Additional information is available in the various directories.
Install the following prerequisites:
sudo apt-get install gcc make gdb
Install the following prerequisites in order to modify the doxygen
documentation:
sudo apt-get install doxygen graphviz
A Makefile
file is available within each directory corresponding
to a set of exercises. Navigate to the desired td-*
directory and invoke
make
to build all the exercises of the directory:
cd <td_number> && make
A bin
and an obj
directory will be generated. The bin
directory contains
all the executables while the obj
directory contains object files.
To a source file corresponds an executable with the same name (except for nested directories).
Navigate to the doxygen directory and invoke doxygen
:
cd doxygen && doxygen doxygen.conf
Nagivate to the generated bin
directory of a set of exercises
and execute the desired exercise:
cd bin && ./<exercise>
Navigate to the doc
directory located at the root of this project and
open the index.html
file.