Hi.
I`m writng script solving problem of dining philosophers but it does not work.
PHILOSOPHER SRIPT:
START SCRIPT:
in the directory are three files. File "start.conf" contains the variables.
Please of little help !
To avoid deadlock, I used a possible solution. The odd numbered philosophers grab the right and then the left while even numbered philosophers grap the chopsticks in the reverse order. Implement this solution using pthread mutual exclusion lock.
Please look at my code, although it works,but the... (4 Replies)