The above video goes away if you are a member and logged in, so log in now!
|
| |
Would you like to get all the new info from PSX-Scene in your email each day?
| |
|
-
03-07-2003,01:40 AM
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 Like whether to call Dominos or Pizza Hut...?
-
03-07-2003,03:48 AM
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.
-
03-07-2003,06:15 PM
what the hell are you talking about?
just get a big reverse-vaccumm cleaner, and blow all the food at them
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|