Version: 10. Mandatory part only. Write and tested on MacOS.
- Simple implementation: a saw a lot of philo make overcomplicated implementation, I try to keep my code simple as possible.
- Clean code: with comments for most important functions.
- Security: all system calls are checked for errors and the program is properly terminated if an error is detected (that was painful to implement without
exit()
function).
This philosopher project passed all basic tests, but not all advanced ones. It potentially has some bugs.
Results | Description | Repository |
---|---|---|
basic + data race with valgrind | philosophers_tester | โ โ Helgrind fail, I don't know why |
CPU check | socrates | โ โฑ๏ธ Except once |
lot of test | 42-philosophers-tester | โ โ For mandatory, some other fail |