Search:

Type: Posts; User: nik1996

Search: Search took 0.10 seconds.

  1. Re: Dining Philosophers Problem -- I'm having great difficulties

    I'm not sure if you're asking me a theoretical question re: if there should be a deadlock. The exercise says there should be one:


    My thoughts however would be that a deadlock could arise in case...
  2. Re: Dining Philosophers Problem -- I'm having great difficulties

    Here's the main method (I've put it in the OP now as well):



    public class DiningPhilosophers {

    public static void main(String[] args) {
    int size = 5; //number of philosophers...
  3. Dining Philosophers Problem -- I'm having great difficulties

    Hello! I really need help with an exercise.
    The exercise goes like this: Implement a version where a philosopher waits if a chopstick is already used by another philosopher. (You can use...
Results 1 to 3 of 3