Think and eat alternating between both. There is one chopstick between each philosopher. Dining philosophers problem using semaphores problem definition.