Choosing among alternative pasts

M. Biberstein, E. Farchi, S. Ur
{"title":"Choosing among alternative pasts","authors":"M. Biberstein, E. Farchi, S. Ur","doi":"10.1109/IPDPS.2003.1213516","DOIUrl":null,"url":null,"abstract":"The main problem with testing concurrent programs is their non-determinism: two executions of such a program may yield different results. The traditional solution is to identify and examine the race conditions. A different approach is that of generating different interleavings at runtime using embedded sleep statements. Advantages of this approach over the traditional one include its ability to identify more problems, and the absence of the false alarms. This paper proposes a totally different technique for the generation of interleavings. Operations on shared variables are tracked. Every time a shared variable is read, the read value is chosen among the values that the variable could hold in some interleaving consistent with the past observed events. The event timing restrictions are then updated based on the value chosen. The problem of identifying legal read values is far from simple due to the fact that past value substitutions affect future ones. Our solution is computationally intensive and, therefore, impractical as is. However, insights gained from it lead to practical heuristics for operating the embedded sleep statements.","PeriodicalId":177848,"journal":{"name":"Proceedings International Parallel and Distributed Processing Symposium","volume":"82 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2003-04-22","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"10","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Proceedings International Parallel and Distributed Processing Symposium","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/IPDPS.2003.1213516","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 10

Abstract

The main problem with testing concurrent programs is their non-determinism: two executions of such a program may yield different results. The traditional solution is to identify and examine the race conditions. A different approach is that of generating different interleavings at runtime using embedded sleep statements. Advantages of this approach over the traditional one include its ability to identify more problems, and the absence of the false alarms. This paper proposes a totally different technique for the generation of interleavings. Operations on shared variables are tracked. Every time a shared variable is read, the read value is chosen among the values that the variable could hold in some interleaving consistent with the past observed events. The event timing restrictions are then updated based on the value chosen. The problem of identifying legal read values is far from simple due to the fact that past value substitutions affect future ones. Our solution is computationally intensive and, therefore, impractical as is. However, insights gained from it lead to practical heuristics for operating the embedded sleep statements.
在不同的过去中选择
测试并发程序的主要问题是它们的不确定性:这样一个程序的两次执行可能会产生不同的结果。传统的解决方案是识别和检查竞态条件。另一种方法是在运行时使用嵌入式睡眠语句生成不同的交错。与传统方法相比,这种方法的优点包括能够识别更多的问题,并且没有假警报。本文提出了一种完全不同的交错生成技术。跟踪对共享变量的操作。每次读取共享变量时,读取的值都是从该变量在与过去观察到的事件一致的交错中可以保存的值中选择的。然后根据所选值更新事件定时限制。识别合法读取值的问题远非简单,因为过去的值替换会影响未来的值。我们的解决方案是计算密集型的,因此是不切实际的。然而,从中获得的见解为操作嵌入式睡眠语句提供了实用的启发。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信