๐”– Bobbio Scriptorium
โœฆ   LIBER   โœฆ

How to solve the Santa Claus problem

โœ Scribed by BEN-ARI, MORDECHAI


Publisher
John Wiley and Sons
Year
1998
Tongue
English
Weight
73 KB
Volume
10
Category
Article
ISSN
1040-3108

No coin nor oath required. For personal study only.

โœฆ Synopsis


John Trono (1994) published a new exercise in concurrent programming -the Santa Claus problem -and provided a solution based on semaphores. His solution is incorrect because it assumes that a process released from waiting on a semaphore will necessarily be scheduled for execution. We give a simple solution in Ada 95 using higher-order synchronization primitives: protected objects and rendezvous. We then give a solution in Java, although this solution is not as elegant as the Ada 95 solution because the Java synchronization primitives are rather limited. The problem demonstrates that semaphores, designed for low-level mutual exclusion, are not appropriate for solving difficult concurrent programming problems.


๐Ÿ“œ SIMILAR VOLUMES


The dirty dozen: Tough treasury problems
โœ James S. Sagner ๐Ÿ“‚ Article ๐Ÿ“… 2004 ๐Ÿ› John Wiley and Sons ๐ŸŒ English โš– 56 KB

## Abstract Due to recent recessions, many companies have downsized or outsourced critical functions. Treasury and Finance have suffered, as entire departments were eliminated. What's worse, companies have grown lax about optimizing cash use while retaining adequate controls. The author presents a