首页> 外文期刊>Logical Methods in Computer Science >Permission-Based Separation Logic for Multithreaded Java Programs
【24h】

Permission-Based Separation Logic for Multithreaded Java Programs

机译:多线程Java程序的基于权限的分离逻辑

获取原文
           

摘要

This paper presents a program logic for reasoning about multithreadedJava-like programs with dynamic thread creation, thread joining and reentrantobject monitors. The logic is based on concurrent separation logic. It is thefirst detailed adaptation of concurrent separation logic to a multithreadedJava-like language. The program logic associates a unique static accesspermission with each heap location, ensuring exclusive write accesses andruling out data races. Concurrent reads are supported through fractionalpermissions. Permissions can be transferred between threads upon threadstarting, thread joining, initial monitor entrancies and final monitor exits.In order to distinguish between initial monitor entrancies and monitorreentrancies, auxiliary variables keep track of multisets of currently heldmonitors. Data abstraction and behavioral subtyping are facilitated throughabstract predicates, which are also used to represent monitor invariants,preconditions for thread starting and postconditions for thread joining.Value-parametrized types allow to conveniently capture common strong globalinvariants, like static object ownership relations. The program logic ispresented for a model language with Java-like classes and interfaces, thesoundness of the program logic is proven, and a number of illustrative examplesare presented.
机译:本文提出了一种程序逻辑,用于推理具有动态线程创建,线程连接和可重入对象监视器的类Java多线程程序。该逻辑基于并发分离逻辑。这是并发分离逻辑对类似多线程Java的语言的首次详细修改。程序逻辑将唯一的静态访问权限与每个堆位置相关联,以确保排他的写访问和排除数据争用。通过小数权限支持并发读取。可以在线程启动,线程连接,初始监控器事件和最终监控器退出时在线程之间转移权限。为了区分初始监控器事件和监控器事件,辅助变量跟踪当前持有的监控器的多集合。通过抽象谓词可以促进数据抽象和行为子类型化,这些抽象谓词还用于表示监视器不变式,线程启动的前提条件和线程加入的后置条件。值参数化类型允许方便地捕获常见的强全局不变式,例如静态对象所有权关系。针对具有类似Java类和接口的模型语言,给出了程序逻辑,证明了程序逻辑的健全性,并提供了许多说明性示例。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号