Advertisement

Towards automatic parallelization of logic programs

  • Krzysztof R. Apt
Invited Lectures
Part of the Lecture Notes in Computer Science book series (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.

References

  1. [AL95]
    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. [Nai82]
    L. Naish. An Introduction to MU-PROLOG. Technical Report TR 82/2, Dept. of Computer Science, Univ. of Melbourne, 1982.Google Scholar
  3. [Nai88]
    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

Copyright information

© Springer-Verlag Berlin Heidelberg 1995

Authors and Affiliations

  • Krzysztof R. Apt
    • 1
    • 2
  1. 1.CWIGB AmsterdamThe Netherlands
  2. 2.Department of Mathematics and Computer ScienceUniversity of AmsterdamTV AmsterdamThe Netherlands

Personalised recommendations