See: http://docs.eiffel.com/book/solutions/dining-philosophers