This Project was made in collaboration with two other classmates:
Daniela Camarinha 58199
Diogo Lopes 60447
Pedro Silva 59886
This project aims to simulate the admission and the service of pacients in a hospital, which involves 3 steps: Admission by a receptionist, the forwarding of pacients into a waiting room and the service giving by a doctor. There are also logs to register how and when this process is done. This aims to get students familiar with the C language and POSIX.
- processes and threads
- memory managment
- logging and alarms
- signals
The hOSpital project is divided into these directories:
bin: contains the executable fileinclude: contains the files with the extension .hobj: contains the files with the .o extensionsrc: contains the source files with the .c extension
make cleanmake./bin/hOSpital config.txtThe CLi program contains the following operations:
add pacient doctor- does the admission in the hospital indicating that the pacient wants to schedule an appointment with the doctorinfo id- check the status of the admission with a specific idstatus- checking the status of the data buffer that stores all of the data needed for the programhelp- shows aditional information on these operationsend- ends the execution of the program