© 1979 by British Computer Society
| ||||||||||||||||||||||||||||||||||||||||||||||||||||
On implementing semaphores with sets
Department of Computer Science, Monash University, Clayton, Victoria, Australia
It is proposed that semaphores should in some circumstances be extended by associating with each semaphore, in addition to the usual integer, a set (bit string). There are two separate uses for this set, which are considered separately and which can be implemented independently of each other. The first, the available resources set, has a bit identifying each resource controlled by the semaphore, which will indicate when the resource is free. When no resources are free the set may then be used to identify those processes waiting on a resource. The advantages and disadvantages of both sets are discussed, including the possibility of eliminating MUTEX semaphores from situations such as producer/consumer activities, and the possibility of entirely automating (i.e. controlling by hardware semaphore instructions) the synchronisation and scheduling of processes.
Received February 1977.
* At Technische Hochschule Darmstadt, Institut für Praktische Informatik, Fachbereich 20, 61 Darmstadt, Steubenplatz 12, West Germany, until May 1979.
Department of Computer Science, Monash University, Clayton, Victoria 3168, Australia