Originally Posted by
paeez
explain what it does..
Well, I would say it is a possible solution to the Dining Philosophers problem, which one quick Google search provided the explanation:
http://en.wikipedia.org/wiki/Dining_...ophers_problem
Are you wanting someone to walk you through how the code works step by step? I'm still not understanding what your question is exactly.