Semaphore Solutions To General Mutual Exclusion Problems




Yue, Kwok-Bun

Journal Title

Journal ISSN

Volume Title


University of North Texas, Denton


Automatic generation of starvation-free semaphore solutions to general mutual exclusion problems is discussed. A reduction approach is introduced for recognizing edge-solvable problems, together with an O(N^2) algorithm for graph reduction, where N is the number of nodes. An algorithm for the automatic generation of starvation-free edge-solvable solutions is presented. The solutions are proved to be very efficient. For general problems, there are two ways to generate efficient solutions. One associates a semaphore with every node, the other with every edge. They are both better than the standard monitor—like solutions. Besides strong semaphores, solutions using weak semaphores, weaker semaphores and generalized semaphores are also considered. Basic properties of semaphore solutions are also discussed. Tools describing the dynamic behavior of parallel systems, as well as performance criteria for evaluating semaphore solutions are elaborated.




Yue, K., Semaphore Solutions To General Mutual Exclusion Problems. Ph.D. Dissertation. University of North Texas, Denton, 1988.