Several solutions to the Dining Philosophers problem (C# and Java)