所有权转移的线性化
Linearizability with Ownership Transfer
摘要:
可线性化性是一个普遍接受的并发算法库的正确性概念。不幸的是,它假定库和客户机之间完全隔离,交互仅限于传递给定数据类型的值。这不适用于常见的程序设计语言,其中库和它们的客户端可以通过堆进行通信,转移数据结构的所有权,甚至可以在没有任何内存保护的共享地址空间中运行。在本文中,我们提出的线性化的第一个定义,解除了这一限制,并建立了一个抽象定理:同时证明了一个并发库的客户端的属性,我们可以完全取代图书馆的抽象实现相关的原始我们的线性化。这允许在对客户机进行推理时从库实现的细节中抽象出来。我们还证明了线性化与所有权转移可以从经典的,如果库不访问一些数据结构转移到它的客户端。
英文摘要:
Linearizability is a commonly accepted notion of correctness for libraries of concurrent algorithms. Unfortunately, it assumes a complete isolation between a library and its client, with interactions limited to passing values of a given data type. This is inappropriate for common programming languages, where libraries and their clients can communicate via the heap, transferring the ownership of data structures, and can even run in a shared address space without any memory protection. In this paper, we present the first definition of linearizability that lifts this limitation and establish an Abstraction Theorem: while proving a property of a client of a concurrent library, we can soundly replace the library by its abstract implementation related to the original one by our generalisation of linearizability. This allows abstracting from the details of the library implementation while reasoning about the client. We also prove that linearizability with ownership transfer can be derived from the classical one if the library does not access some of data structures transferred to it by the client.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。