Handling Side-effects with Selective Recomputation in AND/OR Parallel Execution Models

The side-eeect problem in AND/OR parallel execution of logic programs is complex and need to be further investigated. This paper presents a Selective Recomputation(SR) approach for handling side-eeects in the OR-forest model which can exploit both AND-and OR-parallelism. In contrast to merely AND-and merely OR-parallel execution models/systems, handling side-eeects in AND/OR parallel execution models/systems is much more diicult because of the complex orderings among side-eeect built-ins. Firstly, we give a brief description of the OR-forest model. Secondly, we analyze the side-eeect problem in merely AND-parallel, merely OR-parallel and AND/OR parallel models/systems. Thirdly, we describe the Selective Recomputation(SR) approach in detail in the OR-forest model. This approach can solve the side-eeect problem with minimum recomputation and maximum parallelism, and it is applicable to other AND/OR parallel execution models/systems as well.

[1]  Enrico Pontelli,et al.  &ACE: a high-performance parallel Prolog system , 1995, IPPS.

[2]  Seif Haridi,et al.  Kernel Andorra Prolog and its Computation Model , 1990, ICLP.

[3]  Shouren Hu,et al.  A Compliling Approach for Exploiting And-parallelism in Parallel Logic Programming Systems , 1989, PARLE.

[4]  Vipin Kumar,et al.  AND-Parallel Execution of Logic Programs on a Shared-Memory Multiprocessor , 1988, J. Log. Program..

[5]  Rong Yang,et al.  Andorra I: a parallel Prolog system that transparently exploits both And-and or-parallelism , 1991, PPOPP '91.

[6]  Doug DeGroot,et al.  Restricted AND-Parallelism , 1984, FGCS.

[7]  Dingxing Wang,et al.  Intelligent Scheduling AND- and OR-Parallelism in the Parallel Logic Programming System RAP/LOP-PIM , 1991, ICPP.

[8]  Chengzheng Sun,et al.  The OR-Forest Description for the Execution of Logic Programs , 1986, ICLP.

[9]  Michael Maher Initial Results from the Parallel Implementation of DASWAM , 1996 .

[10]  Doug DeGroot Restricted And-Parallelism and Side Effects , 1987, SLP.

[11]  Chengzheng Sun,et al.  The sharing of environment in AND-OR-parallel execution of logic programs , 1987, ISCA '87.

[12]  Péter Szeredi,et al.  Scheduling Or-parallelism in Aurora: The Manchester Scheduler , 1989, International Conference on Logic Programming.

[13]  Rong Yang,et al.  IDIOM: Integrating Dependent And-, Independent And-, and Or-parallelism , 1991, ISLP.

[14]  George H. Pollard Parallel execution of Horn clause programs , 1982 .

[15]  Chengzheng Sun,et al.  Reduction of Code Space in Parallel Logic Programming Systems , 1991, PARLE.

[16]  Chengzheng Sun,et al.  Study of a Parallel Inference Machine for Parallel Execution of Logic Programs , 1990, CONPAR.

[17]  Gopal Gupta,et al.  Cuts and Side-Effects in And-Or Parallel Prolog , 1996, J. Log. Program..