计算机科学 > 分布式、并行与集群计算
[提交于 2014年7月7日]
标题:Dynamic Checking of Safe Concurrent Memory Access using Shared Ownership
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:In shared-memory concurrent programming, shared resources can be protected using synchronization mechanisms such as monitors or channels. The connection between these mechanisms and the resources they protect is, however, only given implicitly; this makes it difficult both for programmers to apply the mechanisms correctly and for compilers to check that resources are properly protected. This paper presents a mechanism to automatically check that shared memory is accessed properly, using a methodology called shared ownership. In contrast to traditional ownership, shared ownership offers more flexibility by permitting multiple owners of a resource. On the basis of this methodology, we define an abstract model of resource access that provides operations to manage data dependencies, as well as sharing and transfer of access privileges. The model is rigorously defined using a formal semantics, and shown to be free from data races. This property can be used to detect unsafe memory accesses when simulating the model together with the execution of a program. The expressiveness and efficiency of the approach is demonstrated on a variety of programs using common synchronization mechanisms.
提交历史
来自:Sebastian Nanz[v1] 2014年7月7日 星期一 00:00:00 UTC