Skip to main navigation menu Skip to main content Skip to site footer

Articles

Vol. 43 No. 2 (2009)

A Formal Model for Implementation of OR Parallelism

Submitted
October 24, 2026

Abstract

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. [1] F.E.Allen (1969), Program optimization , in Annual Review in Automatic
  2. Programming 5 , International Tracts in Computer Science and Technology and
  3. their Applications , vol.13, Pergamon Press, Oxford, England, pp.239J307;
  4. [2] R. Bahgat (1993),Pandora: NonVDeterministic Parallel Logic Programming,
  5. PhD Thesis, Department of Computing, Imperial College of Science and
  6. Technology, Feb. 1991, Published by World Scientific Publishing Co.;
  7. [3] J. Barklund (1990), Parallel Unification , PhD Thesis, Uppsala University;
  8. [4] U. Baron, J.C. de Kergommeaux et al. (1988), The Parallel ECRC Prolog
  9. System PEPSys: An Overview and Evaluation of Results, in Proceedings of the
  10. International Conf. on Fifth Generation Computer Systems, Tokyo, pp. 841J850;
  11. [5] P. Borgwardt (1984), Parallel Prolog using Stack Segments on Shared
  12. Memory Multiprocessors, Proceedings of the International Symposium on Logic
  13. Programming, Atlantic City, NJ, pp 2J11;
  14. [6] A. Ciepielewski, S. Haridi (1983),A Formal Model for ORVParallel Execution
  15. of Logic Programs, IFIP 83, North Holland, P.C. Mason (ed.), pp.299J305;
  16. [7] J.S. Conery (1983),The AND/OR Process Model for Parallel Interpretation of
  17. Logic Programs, PhD. Dissertation, Univ. California, Irvine;
  18. [8] J.S. Conery (1987), Parallel Execution of Logic Programs,Kluwer, Dordrecht;
  19. [9] V. Santos Costa, David H.D. Warren and Rong Yang (1991),AndorraVI: A
  20. Parallel Prolog System that Transparently Exploits both andV and orVParallelism,
  21. in Proceedings of the Third ACM SIGPLAN Symposium on Principles and Practice
  22. of Parallel Programming, ACM Press, April 1991, pp. 83J93;
  23. [10] I. Foster and S. Tuecke (1993), Parallel Programming with PCN . Argonne
  24. National Laboratory, January;
  25. [11] D. Gelernter (1985),Generative communication in Linda . ACM Transactions
  26. Loredana Mocean, Monica Ciaca, Halim Khelalfa
  27. _________________________________________________________________
  28. on Programming Language Systems, 7(1), 1985, pp.80J112;
  29. [12] G. Gupta, B. Jayaraman (1993), Analysis of ORVParallel Execution
  30. Models, ACM Transactions on Programming Languages, 15(4) pp.659J
  31. 680, Sept.;
  32. [13]G. Gupta (1993), M. Hermenegildo and V. Santos Costa – AndVOr Parallel
  33. Prolog: A Recomputation Based Approach, New Generation Computing, 11 (3J4)
  34. pp.297J323;
  35. [14]G. Gupta (1994), Multiprocessor Execution of Logic Porgrams, Kluwer
  36. Academic Publishers, Norwell;
  37. [15]Z. Halim (1986), A DataVdriven Machine for ORVParallel Evaluation of
  38. Logic Programs, New Generation Comput. , pp.5J33;
  39. [16]L. V. Kale (1987) , Parallel Execution of Logic Programs: the REDUCEVOR
  40. Process Model, in Fourth International Conference on Logic Programming , pages
  41. 616J632. Melbourne, Australia, May;
  42. [17]P.H.J.Kelly (1989), Functional Programming for LooselyVcoupled
  43. Multiprocessors MIT Press;
  44. [18]R.M.Karp, R.E.Miller and S.Winograd (1967), The Organization of
  45. Computations for Uniform Recurrence Equation s, in Journal of the ACM , 14(3),
  46. pp.563J590, July;
  47. [19]L. Lamport (1974), The Parallel Execution of DO Loops, in
  48. Communications of the ACM , 17(2), pp. 83J93;
  49. [20]G. Lindstrom (1984), ORVParallelism on Applicative Architecture , Proc. 2
  50. nd
  51. International Logic Programming Conf, pp.159J170, July;
  52. [21]Y.Muraoka (1971), Parallelism Exposure and Exploitation in Programs,
  53. Ph.D. Thesis, Tech.Rep. 71J424, University of Illinois at UrbanaJChampaign;
  54. [22]V.S. Sunderam (1990), PVM: A Framework for Parallel Distributed
  55. Computing , in Concurrency: Practice & Experience , 2(4), pp.315J339;
  56. [23]Sverker Janson ; Seif Haridi (1990), Programming Paradigms of the
  57. Andorra Kernel Language , Technical Report PEPMA Project, Sweden, Nov.;
  58. [24] P. Tinker (1988),Performance of an ORVparallel Logic Programming
  59. System , International Journal of Parallel Programming, 17, pp.59J92;
  60. [25] P.C. Treleaven (1990), Parallel Computers: ObjectVoriented, Functional,
  61. Logic . J. Wiley & Sons;
  62. [26]Alexandru Vancea(1999) , Paralelizarea automată a programelor, Teză de
  63. doctorat, "BabeşJBolyai" University ClujJNapoca;
  64. [27]Monica (Ciaca) Vancea, Alexandru Vancea (2001), An Analysis of Models
  65. for Parallel Logic Programming, in Research Seminars, Preprint No. 1 , pp. 21J32;
  66. [28]Monica Vancea(2004), Tehnici de implementare în limbaje de programare
  67. logică paralelă , Presa Universitară Clujeană;
  68. [29]D. H. D. Warren (1983), An Abstract Prolog Instruction Set. Technical
  69. Report 309, Artificial Intelligence Center, SRI International, 1983.

Similar Articles

1-10 of 511

You may also start an advanced similarity search for this article.