STRICT AND NONSTRICT INDEPENDENT AND PARALLELISM IN LOGIC PROGRAMS - CORRECTNESS, EFFICIENCY, AND COMPILE-TIME CONDITIONS

被引:38
作者
HERMENEGILDO, MV
ROSSI, F
机构
[1] Facultad de Informática, Universidad Politécnica de Madrid (UPM), 28660 Boadilla del Monte, Madrid
[2] Dipartimento di Informatica, Università di Pisa, Pisa
来源
JOURNAL OF LOGIC PROGRAMMING | 1995年 / 22卷 / 01期
关键词
722.4 Digital Computers and Systems - 723.1 Computer Programming - 723.2 Data Processing and Image Processing - 723.5 Computer Applications - 903.3 Information Retrieval and Use;
D O I
10.1016/0743-1066(93)00007-F
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
This paper presents some fundamental properties of independent and parallelism and extends its applicability by enlarging the class of goals eligible for parallel execution. A simple model of(independent) and-parallel execution is proposed and issues of correctness and efficiency are discussed in the light of this model. Two conditions, ''strict'' and ''non-strict'' independence, are defined and then proved sufficient to ensure correctness and efficiency of parallel execution: If goals which meet these conditions are executed in parallel, the solutions obtained are the same as those produced by standard sequential execution. Also, in the absence of failure, the parallel proof procedure does not generate any additional work (with respect to standard SLD resolution), while the actual execution time is reduced. Finally, in case of failure of any of the goals, no slowdown will occur. For strict independence, the results are shown to hold independently of whether the parallel goals execute in the same environment or in separate environments. In addition, a formal basis is given for the automatic compile-time generation of independent and-parallelism: Compile-time conditions to efficiently check goal independence at run time are proposed and proved sufficient. Also, rules are given for constructing simpler conditions if information regarding the binding context of the goals to be executed in parallel is available to the compiler.
引用
收藏
页码:1 / 45
页数:45
相关论文
共 38 条
[1]   CONTRIBUTIONS TO THE THEORY OF LOGIC PROGRAMMING [J].
APT, KR ;
VANEMDEN, MH .
JOURNAL OF THE ACM, 1982, 29 (03) :841-862
[2]  
APT KR, 1988, IN PRESS HDB THEORET
[3]  
BISWAS P, 1988, 5TH P INT C S LOG PR, P1160
[4]  
BRUYNOOGHE M, 1987, CW62 KATH U DEP COMP
[5]  
CHANG JH, 1985, COMPCON SPRING 85, P218
[6]  
CHANG SE, 1989, P N AM C LOG PROGR, P350
[7]  
CONERY JS, 1987, SEP S LOG PROGR, P457
[8]  
Cousot P., 1977, P 4 ACM SIGACT SIGPL, P238, DOI [DOI 10.1145/512950.512973, 10.1145/512950.512973]
[9]   AUTOMATIC-MODE INFERENCE FOR LOGIC PROGRAMS [J].
DEBRAY, SK ;
WARREN, DS .
JOURNAL OF LOGIC PROGRAMMING, 1988, 5 (03) :207-229
[10]  
DEGROOT D, 1984, 5TH P INT C GEN COMP, P471