Sciweavers

CORR
2002
Springer

Detecting Race Conditions in Parallel Programs that Use Semaphores

13 years 3 months ago
Detecting Race Conditions in Parallel Programs that Use Semaphores
Abstract. We address the problem of detecting race conditions in programs that use semaphores for synchronization. Netzer and Miller showed that it is NP-complete to detect race conditions in programs that use many semaphores. We show in this paper that it remains NP-complete even if only two semaphores are used in the parallel programs. For the tractable case, i.e., using only one semaphore, we give two algorithms for detecting race conditions from the trace of executing a parallel program on p processors, where n semaphore operations are executed. The first algorithm determines in O(n) time whether a race condition exists between any two given operations. The second algorithm runs in O(np log n) time and outputs a compact representation from which one can determine in O(1) time whether a race condition exists between any two given operations. The second algorithm is nearoptimal in that the running time is only O(log n) times the time required simply to write down the output. Key Word...
Philip N. Klein, Hsueh-I Lu, Robert H. B. Netzer
Added 18 Dec 2010
Updated 18 Dec 2010
Type Journal
Year 2002
Where CORR
Authors Philip N. Klein, Hsueh-I Lu, Robert H. B. Netzer
Comments (0)