Skip to main content

Space-Efficient First Race Detection in Shared Memory Programs with Nested Parallelism

  • Conference paper
  • First Online:
Applied Parallel Computing (PARA 2002)

Part of the book series: Lecture Notes in Computer Science ((LNCS,volume 2367))

Included in the following conference series:

  • 472 Accesses

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.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 84.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 109.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. 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

    Article  Google Scholar 

  2. 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

    Google Scholar 

  3. 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

    Google Scholar 

  4. 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

    Google Scholar 

  5. 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

    Google Scholar 

  6. 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

    Google Scholar 

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

    Google Scholar 

  8. 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

    Google Scholar 

  9. 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

    Google Scholar 

  10. 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

    Google Scholar 

  11. 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

    Google Scholar 

  12. 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

    Google Scholar 

  13. 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

    Google Scholar 

  14. Mellor-Crummey, J.: On the fly Detection of Data Races for Programs with Nested Fork-Join Parallelism, ACM/IEEE Supercomputing(1991), 24–33

    Google Scholar 

  15. Mohrig, R.: Algorithmic aspects of comparability graphs and interval graphs, Graphs and Order, Rival ed., D. Reidel (1985), 41–101

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Editors and Affiliations

Rights and permissions

Reprints 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

Publish with us

Policies and ethics