首页> 外文会议>ECOOP 2011 - Object-oriented programming >Atomic Boxes: Coordinated Exception Handling with Transactional Memory
【24h】

Atomic Boxes: Coordinated Exception Handling with Transactional Memory

机译:原子框:具有事务性内存的协调异常处理

获取原文
获取原文并翻译 | 示例

摘要

In concurrent programs raising an exception in one thread does not prevent others from operating on an inconsistent shared state. Instead, exceptions should ideally be handled in coordination by all the threads that are affected by their cause. In this paper, we propose a Java language extension for coordinated exception handling where a named abox (atomic box) is used to demarcate a region of code that must execute atomically and in isolation. Upon an exception raised inside an abox, threads executing in dependent aboxes, roll back their changes, and execute their recovery handler in coordination. We provide a dedicated compiler framework, CXH, to evaluate experimentally our atomic box construct. Our evaluation indicates that, in addition to enabling recovery, an atomic box executes a reasonably small region of code twice as fast as when using a failbox, the existing coordination alternative that has no recovery support.
机译:在并发程序中,在一个线程中引发异常不会阻止其他线程在不一致的共享状态下运行。相反,理想情况下,异常应该由受其原因影响的所有线程协调处理。在本文中,我们提出了一种用于协调异常处理的Java语言扩展,其中使用了一个命名的abox(原子框)来划分必须原子地且独立执行的代码区域。在abox内部引发异常后,线程将在相关abox中执行,回滚其更改并协调执行其恢复处理程序。我们提供了专用的编译器框架CXH,以通过实验评估我们的原子盒构造。我们的评估表明,除了启用恢复功能外,原子框执行的代码区域相对较小,是使用故障框时(不支持恢复的现有协调替代方案)的两倍。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号