Abstract
Data races are errors caused by uncoordinated access in parallel programs, resulting in non-deterministic program execution. Therefore, the main focus of the current paper is to create efficient on-the-fly detection of data races based on minimizing the shared data structures, thereby reducing the space overhead required to maintain the access history and concurrency information during an execution. Accordingly, a space efficient method is proposed for detecting first races, since their detection can eliminate other races. To reduce the storage requirements, the proposed method uses a sequential monitoring technique and decomposition tree, checks the logical concurrency among the threads, and examines the root events. The programs considered in this paper have a series-parallel graph with a fork-join. The resulting space complexity is O(VN), where V is the number of shared variables, T is the maximum parallelism, and N is the nesting depth of the program.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
References
Netzer R. H. B., and Miller B. P.: What are Race Conditions? Some Issues and Formalizations, ACM Letters on Programming Language and Systems, Vol. 1(1) (1992) 74–88
J. Choi, and S. Min: Race Frontier-Reproducing data races in parallel program debugging, 3rd ACM symp. On Principles and Practice of Parallel Programming (1991) 145–154
Dinning, A., and E. Schonberg: An Empirical Comparison of Monitoring Algorithms for Access Anomaly Detection, 2nd ACM Symp. On Principles and Practice of Parallel Programming(1990) 1–10
Audenaert K.: Space efficient data race detection for parallel programs with series-parallel task graphs, 3rd Euromicro workshop on Parallel and Distributed Processing IEEE(1996) 508–515
Kim, J., and Y. Jun: Scalable On the fly Detection of the First Races in Parallel Programs, 12nd Int’l. Conf. On Supercomputing, ACM, Melbourne(1998) 345–352
Netzer R. H. B., and Miller B. P.: Improving the Accuracy of Data Race Detection, 3rd ACM Symp. On Principles and Practice of Parallel Programming(1991) 133–144
Netzer R. H. B., and S. Ghost: Efficient Race Condition Detection for Shared-Memory Programs with POST/WAIT Synchronization, Int’l Conf. On Parallel Processing(1992) 242–246
Y. Jun, and C. E. McDowell: On the fly Detection of the First Races in Programs with Nested Parallelism, 2nd Int’l Conf. On PAPTA, CSREA(1996) 1549–1560
Y. Jun, and C. E. McDowell: Scalable Monitoring Technique for Detecting Races in Parallel Programs, Proc. of the 5th IEEE Int’l Workshop on High-Level Parallel Programming Models and Supportive Environments(HIPS’00)(2000) 340–347
B. Chon, J. Woo, and Y. Jun: Detecting the First Race in OpenMP Program with Nested Parallelism, J. of KIPS, Vol. 8-A-3(2001), 253–260
Y. Jun, and K. Koh: On the fly Detection of Access Anomalies Nested Parallel Loops, 3rd Workshop on Parallel and Distributed debugging, ACM(1993), 107–117
Y. Jun, and K. Koh: Monitoring Parallel Programs for Detecting Access Anomalies Occurred First, 2nd Int’l Conf. on Software for Microprocessors and Supercomputers: Theory, Practice, Experience, RAS/ONR(1994), 317–326
H. Park, and Y. Jun: Detecting the First Races in Parallel Programs with Ordered Synchronization, 6th Int’l Conf. on Parallel and Distributed Systems, IEEE(1998), 201–208
Mellor-Crummey, J.: On the fly Detection of Data Races for Programs with Nested Fork-Join Parallelism, ACM/IEEE Supercomputing(1991), 24–33
Mohrig, R.: Algorithmic aspects of comparability graphs and interval graphs, Graphs and Order, Rival ed., D. Reidel (1985), 41–101
Author information
Authors and Affiliations
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2002 Springer-Verlag Berlin Heidelberg
About this paper
Cite this paper
Ha, KS., Ryu, EK., Yoo, KY. (2002). Space-Efficient First Race Detection in Shared Memory Programs with Nested Parallelism. In: Fagerholm, J., Haataja, J., Järvinen, J., Lyly, M., Råback, P., Savolainen, V. (eds) Applied Parallel Computing. PARA 2002. Lecture Notes in Computer Science, vol 2367. Springer, Berlin, Heidelberg. https://doi.org/10.1007/3-540-48051-X_26
Download citation
DOI: https://doi.org/10.1007/3-540-48051-X_26
Published:
Publisher Name: Springer, Berlin, Heidelberg
Print ISBN: 978-3-540-43786-4
Online ISBN: 978-3-540-48051-8
eBook Packages: Springer Book Archive