The above video goes away if you are a member and logged in, so log in now!
LOL Like whether to call Dominos or Pizza Hut...?
Originally posted by inferno
Instead of all the definations & stuff youve asked, I ask you "formally educated" guys just to code a program to solve the Dining Philosophers Problem (without copying it from somewhere).
LOL! Naah thatd be too dificult.
Teh Dining Philosophers problem is actually a synchronization prob. Say 5 number philosophers are sitting @ a circular table... and we assume that the only two actions they can do is eat and think (replace with mod and think for ps2 fanatics) Between each phil, there is a single stick, & in order to have some chow, he must have both the sticks. each phil can pick up one fork @ a time. each attemps left one first , then right. When he is stuffed, he puts down the fork & starts to think. The problem arises that since there are not nuff forks, all of em cant stuff themselves @ once.
SO you have to get a algorithm so that none of them get stuck & none of em starve... or calculate the time spent eating & thinking...
Simple logic & reasoning will solve this prob.
Contradictions like when the heck do the philosophers shit r discarded.
what the hell are you talking about?
just get a big reverse-vaccumm cleaner, and blow all the food at them