In the text file attached, a full description is given.
In this task, it's required to use use threads and mutexes from the pthreads library. We previously had the same dining philosophers problem which we were required o solve using processes and semaphores. I attached this one as well in case it helps.
Deadline, it was today, sadly I wasn't able to submit anything. So the sooner you can finish it the better.