Journal of Information Processing
Online ISSN : 1882-6652
ISSN-L : 1882-6652
An Implementation of Exception Handling with Collateral Task Abortion
Tasuku HiraishiShingo OkunoMasahiro Yasugi
著者情報
ジャーナル フリー

2016 年 24 巻 2 号 p. 439-449

詳細
抄録
In this paper, an implementation of exception handling for task-parallel languages is proposed such that all running parallel tasks in a try block with an exception are automatically aborted as soon as possible. In parallel tree search, exception handling that allows such a collateral task abortion is useful when the objective is to complete the search as soon as one solution is found or to allow a worker to abort the traversal of a subtree that is found to be redundant by another worker, even when it has been initiated. However, few existing task-parallel languages, such as Cilk Plus and X10, have this capability. In this study, we enhanced a task-parallel language, Tascell, with this capability. Since the Tascell compiler is implemented as a translator to C code, techniques are required for implementing the non-local exit mechanism with cleanup code execution in the “finally” clauses. We achieved this implementation by exploiting nested functions, which are already used in the temporary backtracking mechanism of Tascell. We also modified the task scheduler provided by Tascell such that a worker can abort a task after it is started. When aborting a task, the scheduler also aborts all its descendant tasks. We evaluated our implementation in terms of overheads and time taken to abort tasks.
著者関連情報
© 2016 by the Information Processing Society of Japan
前の記事
feedback
Top