Skip to main content

Timeline for Dining Philosophers variation in C

Current License: CC BY-SA 3.0

8 events
when toggle format what by license comment
Dec 4, 2016 at 9:06 vote accept bw0248
Dec 2, 2016 at 21:56 history edited PellMel CC BY-SA 3.0
qualification
Dec 2, 2016 at 21:52 comment added PellMel @c_student, yes, you have interpreted that recommendation correctly.
Dec 2, 2016 at 21:50 history edited PellMel CC BY-SA 3.0
improved wording
Dec 2, 2016 at 21:49 comment added chux Oops - did not read that obvious bit right the first time.
Dec 2, 2016 at 21:48 comment added PellMel @chux, you're right, of course, as I already acknowledge by qualifying the statement you called out with the following one: "Literal '\0' characters in the input could conceivably trip you up, but if you need to accommodate those then you need to handle input altogether differently." I guess I'll tweak the language a bit.
Dec 2, 2016 at 21:30 comment added bw0248 Thanks for the extensive analysis! In regards to unnecessary memory allocation, you say that I should just create an instance of monitor_vars. That would mean I create an instance of the monitor_vars in the main function and then pass a pointer to that instance to init_monitor() in gym_monitor.c. Did I understand that correctly? Definitely seems like a good idea, not sure why I didn't think about this.
Dec 2, 2016 at 17:55 history answered PellMel CC BY-SA 3.0