- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
A memory model sensitive checker for C
A Memory Model Sensitive Checker for C#
Quang Thuan Huynh and Abhik Roychoudhury
School of Computing, National University of Singapore
{huynhqua,abhik}@.sg
Abstract. Modern concurrent programming languages like Java and
C# have a programming language level memory model; it captures the
set of all allowed behaviors of programs on any implementation platform
— uni- or multi-processor. Such a memory model is typically weaker
than Sequential Consistency and allows re-ordering of operations within
a program thread. Therefore, programs verified correct by assuming Se-
quential Consistency (that is, each thread proceeds in program order)
may not behave correctly under certain platforms! The solution to this
problem is to develop program checkers which are memory model sensi-
tive. In this paper, we develop such a reachability analysis tool for the
programming language C#. Our checker identifies program states which
are reached only because the C# memory model is more relaxed than
Sequential Consistency. Furthermore, our checker identifies (a) operation
re-orderings which cause such undesirable states to be reached, and (b)
simple program modifications — by inserting memory barrier operations
— which prevent such undesirable re-orderings.
1 Introduction
Modern mainstream programming languages like Java and C# support multi-
threading as an essential feature of the language. In these languages multiple
threads can access shared objects. Moreover, synchronization mechanisms exist
for controlling access to shared objects by threads. If every access to a shared
object by any thread is preceded by acquisition of a common lock, then the pro-
gram is guaranteed to be “properly synchronized”. The synchronization ensures
that the writes to a shared object are visible to all threads in the same order —
thereby ruling out unpredictable behaviors. On the other hand, if there is (a)
read of a shared object/variable v by at least one thread, (b) write of v by at
least one thread and (c)
您可能关注的文档
- 2MASS observations of spectroscopically identified extragalactic C stars.pdf
- 25分钟限时阅读天天练.doc
- 2非谓语动词做宾补的归纳.pdf
- 2高一英语《m3u1 grammar and usage》.ppt
- 3-particle Calogero Model Supertraces and Ideals on the Algebra of Observables.pdf
- 3 rd grade Week 28.ppt
- 3-Sweep_userstudy.pdf
- 3009W4PCM99A10X;3007W2PCM99A10X;3013W3PCM99A10X;3017W2SCM99A10X;中文规格书,Datasheet资料.pdf
- 3.1Electrolytic Deposition and Diffusion of Lithium onto.pdf
- 3014 led flexible strip.pdf
- A meshfree particle method with stress points.pdf
- A length operator for canonical quantum gravity.pdf
- A meta-analytic examination of the relationship between job satisfaction and subjective well-being.pdf
- A METHOD TO MODIFY ANGLE-STABLE INTRAMEDULLARY.pdf
- A Methodology for Mapping Multiple use-cases onto Networks on Chips.pdf
- A Model for stress generation and relief in oxide — Metal systems during a temperature change.pdf
- A modern view of wide-angle exclusive scattering.pdf
- A Modular Approach to the Analysis and Evaluation of Particle Filters for Figure Tracking.pdf
- A More Rational and Perfect Scheme for C, P, T Transformations as well as C, T and CP Viola.pdf
- A Multicolor Survey of Absolute Proper Motions Galactic Structure and Kinematics in the Di.pdf
文档评论(0)