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
## 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