[concurrency-interest] santa clause problem solved?
gregg at cytetech.com
Wed Apr 9 12:32:17 EDT 2008
jason marshall wrote:
> In the Ada example, Santa knows that there is work to be done (wakes
> up), and figures out which is more pressing. They've elected Santa as
> the Actor in the solution, even though the original problem makes the
> elves and the reindeer the actors and Santa is more or less acted
> upon. In doing so, they make the prioritization phase trivial, and I
> suspect that the 'right' Java solution has to find a way to work in
> the same manner.
It's easy enough to use a single signal with a multi-valued tag along value.
When you get the signal, you always check if the reindeer are there first...
More information about the Concurrency-interest