AN EXCEPTION HANDLING MECHANISM FOR SR

被引:5
作者
HUANG, DT [1 ]
OLSSON, RA [1 ]
机构
[1] UNIV CALIF DAVIS,DIV COMP SCI,DAVIS,CA 95616
来源
COMPUTER LANGUAGES | 1990年 / 15卷 / 03期
关键词
Combination model; Concurrent programming languages; Exception handling; Resumption model; Strict-resumption model; Termination model;
D O I
10.1016/0096-0551(90)90009-E
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
This paper defines an exception handling mechanism for the SR concurrent programming language. It uses the language's communication primitives as the basis for exception signaling and handling. Exceptions are declared, signaled, and handled much like SR's operations. Each operation declaration must define possible exceptions that its body may raise to an invoker. An invoker must provide exception handling capabilities with its invocation statement. An exception can be propagated explicitly along the invocation chain or signaled directly to its handler. The novel integration of exception handling with operations results in parameterized exceptions and both synchronous and asynchronous signaling and handling, thus allowing programmers to simulate any of the common exception handling models. © 1990.
引用
收藏
页码:163 / 176
页数:14
相关论文
共 13 条
[1]   AN OVERVIEW OF THE SR LANGUAGE AND IMPLEMENTATION [J].
ANDREWS, GR ;
OLSSON, RA ;
COFFIN, M ;
ELSHOFF, I ;
NILSEN, K ;
PURDIN, T ;
TOWNSEND, G .
ACM TRANSACTIONS ON PROGRAMMING LANGUAGES AND SYSTEMS, 1988, 10 (01) :51-86
[2]  
ANDREWS GR, 1989, TR896 U ARIZ DEP COM
[3]  
ARCHER M, 1989, UNPUB SPECIFICATION
[4]   PREDICATE TRANSFER AND TIMEOUT IN MESSAGE PASSING SYSTEMS [J].
BERNSTEIN, AJ .
INFORMATION PROCESSING LETTERS, 1987, 24 (01) :43-52
[5]   A MECHANISM FOR EXCEPTION HANDLING AND ITS VERIFICATION RULES [J].
COCCO, N ;
DULLI, S .
COMPUTER LANGUAGES, 1982, 7 (02) :89-102
[6]  
GEHANI N, 1989, CONCURRENT C PROGRAM
[7]   EXCEPTION HANDLING - ISSUES AND A PROPOSED NOTATION [J].
GOODENOUGH, JB .
COMMUNICATIONS OF THE ACM, 1975, 18 (12) :683-696
[8]  
HUANG DT, 1989, CSE8922 U CAL DIV CO
[9]   EXCEPTION HANDLING IN CLU [J].
LISKOV, BH ;
SNYDER, A .
IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 1979, 5 (06) :546-558
[10]  
SCHLICHTING RD, 1987, TR8713 U ARIZ DEP CO