arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 1109.5522cs.LO
收藏

基于Kronecker代数的共享内存并发系统验证

Shared Memory Concurrent System Verification using Kronecker Algebra

Robert Mittermayr, Johann Blieberger

摘要:

多线程软件的验证仍然是一个挑战。这主要是因为线程交织的数量在线程数量中呈指数级增长。用矩阵演算研究线交织是这一研究领域的一种新方法。我们的程序的稀疏矩阵表示使用Kronecker代数的惰性实现进行操作。一个目标是生成一个称为并发程序图(CPG)的数据结构,它描述了所有可能的交织,并在保持完整性的同时结合了同步。我们证明了CPG在一般情况下可以表示为稀疏邻接矩阵。因此,矩阵中的条目数与其行数成线性关系。因此,有效的算法可以应用于CPG。此外,由于同步,实际上只需要结果矩阵的很小一部分,而其余部分在自动机方面是不可达到的。由于矩阵运算的延迟实现,无法到达的部分永远不会计算。这大大加快了处理速度,表明这种方法非常有前途。可以在CPG上执行包括数据流分析在内的各种应用。此外,矩阵的结构可以用来证明任意数量的线程的底层程序的属性。例如,死锁自由证明了一大类程序。

英文摘要:

The verification of multithreaded software is still a challenge. This comes mainly from the fact that the number of thread interleavings grows exponentially in the number of threads. The idea that thread interleavings can be studied with a matrix calculus is a novel approach in this research area. Our sparse matrix representations of the program are manipulated using a lazy implementation of Kronecker algebra. One goal is the generation of a data structure called Concurrent Program Graph (CPG) which describes all possible interleavings and incorporates synchronization while preserving completeness. We prove that CPGs in general can be represented by sparse adjacency matrices. Thus the number of entries in the matrices is linear in their number of lines. Hence efficient algorithms can be applied to CPGs. In addition, due to synchronization only very small parts of the resulting matrix are actually needed, whereas the rest is unreachable in terms of automata. Thanks to the lazy implementation of the matrix operations the unreachable parts are never calculated. This speeds up processing significantly and shows that this approach is very promising. Various applications including data flow analysis can be performed on CPGs. Furthermore, the structure of the matrices can be used to prove properties of the underlying program for an arbitrary number of threads. For example, deadlock freedom is proved for a large class of programs.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑