Forum: Off-Topic - Hang out and chit-chat on a variety of subjects on just about any topic you can think of that isn't necessarily related to your PlayStation consoles.


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?




Want to learn more about the team keeping you up to date with the latest scene news?

Read about them now!

Check out our Developer bios, too!

 


User Tag List

Thread: Visual Basic or C++
  

Page 2 of 2 FirstFirst 1 2
Results 11 to 13 of 13
  1. #11  
    SledDog Guest
    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...?
    Reply With Quote  

  2. #12  
    inferno Guest
    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.
    Reply With Quote  

  3. #13  
    ThAD0oD's Avatar
    ThAD0oD is offline /me pwns j00
    Join Date
    Sep 2002
    Posts
    1,671
    Downloads
    0
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    0
    Likes Received
    0
    what the hell are you talking about?



    just get a big reverse-vaccumm cleaner, and blow all the food at them
    Reply With Quote  

Page 2 of 2 FirstFirst 1 2
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •