arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1602.05365cs.PL
收藏

一种Haskell的开放式事务存储器规范

A Specification of Open Transactional Memory for Haskell

Marino Miculan, Marco Peressotti

摘要:

transmandemory(TM)已经成为一个有前途的抽象并发编程替代基于锁的同步。然而,大多数TM模型只允许隔离的事务,这在事务必须在提交之前通过共享数据进行交互的多线程编程中是不够的。在本文中,我们提出了开放式事务存储器(OTM),一个编程抽象支持安全,数据驱动的可组合的内存事务之间的相互作用。这是通过放松事务之间的隔离来实现的,仍然确保原子性:不同事务的线程可以通过访问共享变量进行交互,但随后它们的事务必须一起提交-实际上,这些事务是透明合并的。该模型允许松耦合的交互,因为事务合并仅由对共享数据的访问驱动,而不需要预先指定参与者。在本文中,我们提供了一个规范的OTM的设置并发Haskell,表明它是一个保守的扩展,目前的STM抽象。特别是,我们提供了一个正式的语义,这使我们能够证明OTM满足\emph{opacity}标准。

英文摘要:

Transactional memory (TM) has emerged as a promising abstraction for concurrent programming alternative to lock-based synchronizations. However, most TM models admit only isolated transactions, which are not adequate in multi-threaded programming where transactions have to interact via shared data before committing. In this paper, we present Open Transactional Memory (OTM), a programming abstraction supporting safe, data-driven interactions between composable memory transactions. This is achieved by relaxing isolation between transactions, still ensuring atomicity: threads of different transactions can interact by accessing shared variables, but then their transactions have to commit together-actually, these transactions are transparently merged. This model allows for loosely-coupled interactions since transaction merging is driven only by accesses to shared data, with no need to specify participants beforehand. In this paper we provide a specification of the OTM in the setting of Concurrent Haskell, showing that it is a conservative extension of current STM abstraction. In particular, we provide a formal semantics, which allows us to prove that OTM satisfies the \emph{opacity} criterion.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑