Explain Dining Philosopher problem in detail and its solution using Semaphores. Can this problem be solved using Dekker’s Solution? Explain your justification. code example
Example: dining philosophers problem in os
process P[i]
while true do
{ THINK;
PICKUP(CHOPSTICK[i], CHOPSTICK[i+1 mod 5]);
EAT;
PUTDOWN(CHOPSTICK[i], CHOPSTICK[i+1 mod 5])
}