Skip to main content

Towards automatic parallelization of logic programs

  • Invited Lectures
  • Conference paper
  • First Online:
  • 187 Accesses

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

Abstract

One of the striking features of logic programs is that they can be easily parallelized. A particularly simple way of turning a logic program into a parallel program was proposed in Naish [Nai82, Nai88], by means of the so-called delay declarations.

The resulting programs exhibit a highly complex behaviour as during their executions dynamic networks of asynchronously communicating processes are created.

In our recent paper Apt and Luitjes [AL95] we studied verification of these programs. In particular, we showed how the methods originally developed for the analysis of Prolog programs can be naturally adapted to prove correctness of logic programs with delay declarations.

Here we discuss a reverse problem: how to parallelize a pure Prolog program by generating the appropriate delay declarations, so that correctness is maintained and deadlock avoided. To this end we identify the crucial properties that the original Prolog program should satisfy and analyze which aspects of the parallelization process and of the correctness proof could be automated.

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

References

  1. K. R. Apt and I. Luitjes. Verification of logic programs with delay declarations. In Proceedings of the Fourth International Conference on Algebraic Methodology and Software Technology, (AMAST'95), Lecture Notes in Computer Science, Berlin, 1995. Springer-Verlag. Invited Lecture. In press.

    Google Scholar 

  2. L. Naish. An Introduction to MU-PROLOG. Technical Report TR 82/2, Dept. of Computer Science, Univ. of Melbourne, 1982.

    Google Scholar 

  3. L. Naish. Parallelizing NU-Prolog. In Proceedings of the Fifth Annual Symposium on Logic in Computer Science, pages 1546–1564. The MIT Press, 1988.

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Bernhard Möller

Rights and permissions

Reprints and permissions

Copyright information

© 1995 Springer-Verlag Berlin Heidelberg

About this paper

Cite this paper

Apt, K.R. (1995). Towards automatic parallelization of logic programs. In: Möller, B. (eds) Mathematics of Program Construction. MPC 1995. Lecture Notes in Computer Science, vol 947. Springer, Berlin, Heidelberg. https://doi.org/10.1007/3-540-60117-1_1

Download citation

  • DOI: https://doi.org/10.1007/3-540-60117-1_1

  • Published:

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-540-60117-3

  • Online ISBN: 978-3-540-49445-4

  • eBook Packages: Springer Book Archive

Publish with us

Policies and ethics