Static Application-Level Race Detection in STM Haskell using Contracts

IF 0.1 4区 历史学 0 ARCHAEOLOGY Journal of Historic Buildings and Places Pub Date : 2013-12-10 DOI:10.4204/EPTCS.137.10
R. Demeyer, Wim Vanhoof
{"title":"Static Application-Level Race Detection in STM Haskell using Contracts","authors":"R. Demeyer, Wim Vanhoof","doi":"10.4204/EPTCS.137.10","DOIUrl":null,"url":null,"abstract":"Writing concurrent programs is a hard task, even when using high-level synchronization primitives such as transactional memories together with a functional language with well-controlled side-effects such as Haskell, because the interferences generated by the processes to each other can occur at different levels and in a very subtle way. The problem occurs when a thread leaves or exposes the shared data in an inconsistent state with respect to the application logic or the real meaning of the data. In this paper, we propose to associate contracts to transactions and we define a program transformation that makes it possible to extend static contract checking in the context of STM Haskell. As a result, we are able to check statically that each transaction of a STM Haskell program handles the shared data in a such way that a given consistency property, expressed in the form of a user-defined boolean function, is preserved. This ensures that bad interference will not occur during the execution of the concurrent program.","PeriodicalId":53164,"journal":{"name":"Journal of Historic Buildings and Places","volume":"5 1","pages":"115-134"},"PeriodicalIF":0.1000,"publicationDate":"2013-12-10","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"1","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Journal of Historic Buildings and Places","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.4204/EPTCS.137.10","RegionNum":4,"RegionCategory":"历史学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"0","JCRName":"ARCHAEOLOGY","Score":null,"Total":0}
引用次数: 1

Abstract

Writing concurrent programs is a hard task, even when using high-level synchronization primitives such as transactional memories together with a functional language with well-controlled side-effects such as Haskell, because the interferences generated by the processes to each other can occur at different levels and in a very subtle way. The problem occurs when a thread leaves or exposes the shared data in an inconsistent state with respect to the application logic or the real meaning of the data. In this paper, we propose to associate contracts to transactions and we define a program transformation that makes it possible to extend static contract checking in the context of STM Haskell. As a result, we are able to check statically that each transaction of a STM Haskell program handles the shared data in a such way that a given consistency property, expressed in the form of a user-defined boolean function, is preserved. This ensures that bad interference will not occur during the execution of the concurrent program.
查看原文
分享 分享
微信好友 朋友圈 QQ好友 复制链接
本刊更多论文
STM Haskell中使用契约的静态应用级竞争检测
编写并发程序是一项艰巨的任务,即使在使用高级同步原语(如事务性内存)和具有良好控制副作用的函数式语言(如Haskell)时也是如此,因为进程之间产生的相互干扰可能发生在不同的级别,并且以非常微妙的方式发生。当线程离开或公开的共享数据处于与应用程序逻辑或数据的实际含义不一致的状态时,就会出现问题。在本文中,我们建议将契约与事务关联起来,并定义了一个程序转换,使得在STM Haskell上下文中扩展静态契约检查成为可能。因此,我们能够静态地检查STM Haskell程序的每个事务处理共享数据的方式是否保留了以用户定义的布尔函数形式表示的给定一致性属性。这确保了在并发程序执行期间不会发生不良干扰。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 去求助
来源期刊
自引率
0.00%
发文量
0
期刊最新文献
8 Tōnosawa Tatara River Nakazu Harbor 3 Nakazu Harbor Aburanokōji Sanjō
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
现在去查看 取消
×
提示
确定
0
微信
客服QQ
Book学术公众号 扫码关注我们
反馈
×
意见反馈
请填写您的意见或建议
请填写您的手机或邮箱
已复制链接
已复制链接
快去分享给好友吧!
我知道了
×
扫码分享
扫码分享
Book学术官方微信
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术
文献互助 智能选刊 最新文献 互助须知 联系我们:info@booksci.cn
Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。
Copyright © 2023 Book学术 All rights reserved.
ghs 京公网安备 11010802042870号 京ICP备2023020795号-1