Parallel solution to the dining-philosophers problem in Python using the threading module