So this time around, I thought I'd give you a bit of a challenge.
When we run our program right now we get all kinds of information printed out and everything looks the
way that it should at the very beginning here we actually have everyone seated in the correct order.
They're all seated and they're seated in whatever order the ghost scheduler decides to execute those
routines in, but they're all seated, and then it prints out all the necessary messages and things.
Finish up what I'd like to have printed out at the very end, just before the table is empty or just
after the table is empty, is print out the order in which diners finished eating.
So in this case we finish with we'd finish with Locke, then Pascal, then Socrates, then Aristotle,
then Plato.
That seems to be the order that they finished.
And of course, this will be a different order each time you run the program, or it has the potential
to be in a different order.
So implementing that solution or finishing this challenge will require that you lock something at some
point in the program.
And it also requires, of course, that you print out a final message.
So so give it a whirl.
And don't worry if you have difficulty, I'll show you how I solve the problem in the next lecture.