Writing Something Big
What could be a better tribute to William of Ockham, fourteenth-century English philosopher and theologian, than an exotic programming language named after him? Only one thing could be better—a simulation of the problem of dining philosophers in Occam.
Rumor has it that five learned men (“the philosophers”) sit around a table somewhere in the universe and think. Now and then, at random times, they get hungry. Luckily, there is a massive dish of pasta on the table. Sadly, being philosophers, they are poor and can afford only one fork per person, but they need two each to enjoy the pasta. As shown in the figure, each philosopher (P in the figure) grabs the fork (F in the figure) on the left and the fork on the right, dines, ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access