Code Monkey home page Code Monkey logo

philosophers's Introduction

Philosophers

๐Ÿ General information

Version: 10. Mandatory part only. Write and tested on MacOS.

๐Ÿฝ Features

  • 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).

๐Ÿ“‹ Testing

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

๐Ÿ“š Resources

๐ŸŒŸ Good projects that inspired me

philosophers's People

Contributors

ulyssegerkens avatar

Watchers

 avatar

philosophers's Issues

Helgrind errors

First of all, I really like this repo. I tried to solve issues with Helgrind errors. I run this code on 42 clusters and my own linux machine. 42 machine returns hundreds errors when run with Helgrind and DRD but none of those errors return when I run this on linux version of Valgrind. Do you also use MacOS at your campus? Maybe that's why. There may be an OS-specific false positive errors.
There is no error with Thread sanitizer as well.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.