Skip to main content
Log in

Deadlock Property Analysis of Concurrent Programs Based on Petri Net Structure

  • Published:
International Journal of Parallel Programming Aims and scope Submit manuscript

Abstract

Deadlocks of concurrent programs are abnormal and need to be avoided. The deadlock property is analyzed in the paper. To reduce the analysis complexity, the decomposition method is presented. The Petri net model of concurrent programs is decomposed into multiple process nets based on the number of processes and message places in a concurrent program. The relation between process nets and the Petri net model of a concurrent program is studied. By analysis of deadlocks of process nets, deadlocks of concurrent programs are concluded. For an important subclass, deadlock property of concurrent programs is determined based on the deadlock property and the static structure of process nets. The decision condition of deadlocks is proposed. The concepts and techniques given in this paper are shown with some examples.

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

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Fig. 1
Fig. 2
Fig. 3
Fig. 4
Fig. 5
Fig. 6
Fig. 7
Fig. 8

Similar content being viewed by others

References

  1. Stpiczyski, P.: Ada as a language for programming clusters of SMPs. Ann. UMCS Sectio AI Inform. 1(1), 1–7 (2015)

    Google Scholar 

  2. RAl-Asadi, E.A.: Finding N prime numbers using distrusted computing PVM (parallel virtual machine). Int. J. Eng. Technol. 5(11), 578–588 (2015)

    Google Scholar 

  3. Finlayson, I., Mueller, J., Rajapakse, S., Easterling, D.: Introducing tetra: an educational parallel programming system. In: Parallel and Distributed Processing Symposium Workshop (IPDPSW), 2015 IEEE International, Hyderabad, pp. 746–751 (2015)

  4. Schaich, D., DeGrand, T.: Parallel software for lattice N = 4 supersymmetric YangCMills theory. Comput. Phys. Commun. 190(1), 200–212 (2014)

    MATH  Google Scholar 

  5. Carter, J., Gardner, W. B.: A formal CSP framework for message passing HPC programming. In: Canadian Conference on Electrical and Computer Engineering, Ottawa, pp. 1466–1470 (2006)

  6. Gardnera, W.B., Carter, J.D.: Using the pilot library to teach message-passing programming. In: Workshop on Education for High Performance Computing, New Orleans, LA, pp. 1–8 (2014)

  7. Jiang, C.J.: The PN Machine Theory of Discrete Event Dynamic System. Science Press House, Beijing (2000)

    Google Scholar 

  8. Murata, T., Shenker, B., Shatz, S.M.: Detection of ada static deadlocks using petri net invariants. IEEE Trans. Softw. Eng. 55(3), 314–326 (1989)

    Article  Google Scholar 

  9. Shatz, S.M., Mai, K., Black, C., Tu, S.: Design and implementation of a petri net-based tookit for ada tasking analysis. IEEE Trans. Parallel Distrib. Syst. 1(4), 424–441 (1990)

    Article  Google Scholar 

  10. Jiang, C.J.: A method to detect the abnormal phenomenon in PVM program based on petri net. J. Syst. Sci. Syst. Eng. 8(2), 165–178 (1999)

    MathSciNet  Google Scholar 

  11. Zhang, Z.Q., Jiang, C.J.: The verification system for PVM parallel program. Chin. J. Comput. 22(4), 409–414 (1999)

    Google Scholar 

  12. Ding, Z.J., Jiang, C.J.: Verification of concurrent programs by temporal petri nets. Chin. J. Comput. 25(5), 467–475 (2002)

    MathSciNet  Google Scholar 

  13. Shatz, S.M., Sheng, R.T., Murata, T.: An application of petri net reduction for ada tasking deadlock analysis. IEEE Trans. Parallel Distrib. Syst. 7(12), 1307–1322 (1996)

    Article  Google Scholar 

  14. Godefroid, P., Wolper, P.: Using partial orders for the efficient verification of deadlock freedom and safety properties. Form. Methods Syst. Des. 2(2), 149–164 (1993)

    Article  MATH  Google Scholar 

  15. Duri, S., Buy, U., Devwapalli, R., Shatz, S.M.: Using state space reduction methods for deadlock analysis in ada tasking. ACM 18(18), 51–60 (1993)

    Google Scholar 

  16. Corbett, J.C.: Evaluating deadlock detection methods for concurrency software. IEEE Trans. Softw. Eng. 22(3), 161–180 (1996)

    Article  Google Scholar 

  17. Valmari, A.: Compositional state space generation. In: International Conference on Applications and Theory of Petri Nets: Advances in Petri Nets, pp. 427–457 (1991)

  18. Cheung, S.C., Kramer, J.: Enhancing compositional reachability analysis with context constraints. ACM Sigsoft Softw. Eng. Notes 18(5), 115–125 (1993)

    Article  Google Scholar 

  19. Yeh, W.J., Young, M.: Compositional reachability analysis using process algebra. In: Proceedings of the Symposium on Testing, Analysis, and Verification. ACM, pp. 49–59 (1999)

  20. Notomi, M., Murata, T.: Hierarchical reachability graph of bounded petri nets for concurrent-software. IEEE Trans. Softw. Eng. 20(5), 325–336 (1994)

    Article  MATH  Google Scholar 

  21. Liu, W., Du, Y.Y., Zhou, M.C., Yan, C.: Transformation of logical workflow nets. IEEE Trans. Syst. Man Cybern. Syst. 8(10), 1401–1412 (2014)

    Article  Google Scholar 

  22. Tian, Y.H., Du, Y.Y.: A grouping algorithm of optimal alignments. J. Shandong Univ. Sci. Technol. 34(1), 29–34 (2015)

    Google Scholar 

  23. Bons, R.W.H., Lee, R.M., Wagenaar, R.W.: Designing trustworthy interorga-nizational trade procedures for open electronic commerce. Int. J. Electron. Commer. 2(3), 61–83 (1998)

    Article  Google Scholar 

Download references

Acknowledgments

This work is supported by the National Natural Science Foundation of China under grant 61472228, 61170078; the Natural Science Foundation of Shandong province under grant ZR2014FM009, ZR2015FM013; the doctoral program of higher education of the specialized research fund of China under Grant 20113718110004; the Project of Shandong Province Higher Educational Science and Technology Program under Grant number J12LN11; the China’s Post-doctoral Science Fund under grant 2012M521362; the Project of Shandong Post-doctoral Fund under grant 201303071;the international cooperation training Project of Shandong Province Higher Educational outstanding youth backbone teachers; and Basic Research Program of Qingdao City of China under Grant No.13-1-4-116-jch.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Wei Liu.

Rights and permissions

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Liu, W., Wang, L., Du, Y. et al. Deadlock Property Analysis of Concurrent Programs Based on Petri Net Structure. Int J Parallel Prog 45, 879–898 (2017). https://doi.org/10.1007/s10766-016-0440-7

Download citation

  • Received:

  • Accepted:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s10766-016-0440-7

Keywords

Navigation