A solution for the dining philosophers problem in C.