OR parallelism can be exploited when a relationship is defined by more than a clause and a calling subgoal may be unified by more than a procedure header. In such a case, the bodies of the clauses involved may be executed in parallel, giving raise to an OR parallel execution. So OR parallelism becomes an efficient method for exploiting alternative solutions in parallel. In section 1 we concentrated the main problems and limitations which appear in OR parallelism implementation, presenting also the most important result (due to Gupta and Jayaraman) obtained until now with respect to this aspect: the impossibility of simultaneously fulfilling the three criteria which define the implementation of an ideal OR parallel system. In section 2 we presented the main memory management mechanisms involved in a classical sequential implementation of the Prolog language. The analysis and characterization of the OR parallel execution models from section 3 are mainly performed relatively to the types of binding environments (centralized or distributed). We present and analyze also models based on multiN agents systems and methods based on stack operations. Section 4 represents the main original contribution of this paper, building a formal model for OR parallelism implementation and making an analysis of its complexity. The results obtained here formally validate the limitation reported by Gupta and Jayaraman, being also of a significant practical utility regarding possible improvements for OR parallel implementations. In section 5 we present a classification based on the three criteria, characterizing a set of implementations proposed in the literature or being in use at this time.
References
[1] F.E.Allen (1969), Program optimization , in Annual Review in Automatic
Programming 5 , International Tracts in Computer Science and Technology and
their Applications , vol.13, Pergamon Press, Oxford, England, pp.239J307;
[2] R. Bahgat (1993),Pandora: NonVDeterministic Parallel Logic Programming,
PhD Thesis, Department of Computing, Imperial College of Science and
Technology, Feb. 1991, Published by World Scientific Publishing Co.;
[3] J. Barklund (1990), Parallel Unification , PhD Thesis, Uppsala University;
[4] U. Baron, J.C. de Kergommeaux et al. (1988), The Parallel ECRC Prolog
System PEPSys: An Overview and Evaluation of Results, in Proceedings of the
International Conf. on Fifth Generation Computer Systems, Tokyo, pp. 841J850;
[5] P. Borgwardt (1984), Parallel Prolog using Stack Segments on Shared
Memory Multiprocessors, Proceedings of the International Symposium on Logic
Programming, Atlantic City, NJ, pp 2J11;
[6] A. Ciepielewski, S. Haridi (1983),A Formal Model for ORVParallel Execution
of Logic Programs, IFIP 83, North Holland, P.C. Mason (ed.), pp.299J305;
[7] J.S. Conery (1983),The AND/OR Process Model for Parallel Interpretation of