How to Cancel a Task
How to Cancel a Task
复制标题
如何取消任务
DOI:
--
复制
发表时间:
2013
期刊:
影响因子:
--
通讯作者:
B. Meyer
中科院分区:
文献类型:
--
作者:
A. Kolesnichenko;Sebastian Nanz;B. Meyer
Task parallelism is ubiquitous in modern applications for event-based, distributed, or reactive systems. In this type of programming, the ability to cancel a running task arises as a critical feature. Although there are a variety of cancellation techniques, a comprehensive account of their characteristics is missing. This paper provides a classification of task cancellation patterns, as well as a detailed analysis of their advantages and disadvantages. One promising approach is cooperative cancellation, where threads must be continuously prepared for external cancellation requests. Based on this pattern, we propose an extension of SCOOP, an object-oriented concurrency model.