Deadlock-Free Channels and Locks

被引:0
|
作者
Leino, K. Rustan M. [1 ]
Mueller, Peter [2 ]
Smans, Jan [3 ]
机构
[1] Microsoft Res, Redmond, WA 98052 USA
[2] Swiss Fed Inst Technol, Zurich, Switzerland
[3] Katholieke Univ Leuven, Leuven, Belgium
关键词
D O I
暂无
中图分类号
TP18 [人工智能理论];
学科分类号
081104 ; 0812 ; 0835 ; 1405 ;
摘要
The combination of message passing and locking to protect shared state is a useful concurrency pattern. However, programs that employ this pattern are susceptible to deadlock. That is, the execution may reach a state where each thread in a set waits for another thread in that set to release a lock or send a message. This paper proposes a modular verification technique that prevents deadlocks in programs that use both message passing and locking. The approach prevents deadlocks by enforcing two rules: (0) a blocking receive is allowed only if another thread holds an obligation to send and (1) each thread must perform acquire and receive operations in accordance with a global order. The approach is proven sound and has been implemented in the Chalice program verifier.
引用
收藏
页码:407 / +
页数:3
相关论文
共 50 条
  • [1] On deadlock-free scheduling in FMS
    Ben Abdallah, I
    ElMekkawy, T
    ElMaraghy, HA
    [J]. 1998 IEEE INTERNATIONAL CONFERENCE ON SYSTEMS, MAN, AND CYBERNETICS, VOLS 1-5, 1998, : 366 - 371
  • [2] Deadlock-Free Broadcast Routing in Dragonfly Networks without Virtual Channels
    Xiang, Dong
    Liu, Xiaowei
    [J]. IEEE TRANSACTIONS ON PARALLEL AND DISTRIBUTED SYSTEMS, 2016, 27 (09) : 2520 - 2532
  • [3] Deadlock-free interval labelling
    Firth, MA
    Jones, A
    [J]. MICROPROCESSORS AND MICROSYSTEMS, 1998, 21 (7-8) : 441 - 454
  • [4] DEADLOCK-FREE WINDOW ALGORITHM WITH LIMITED SPLITTING FOR MULTIPLE ACCESS CHANNELS
    CHOI, E
    KIM, M
    [J]. ELECTRONICS LETTERS, 1989, 25 (09) : 571 - 572
  • [5] DEADLOCK-FREE ADAPTIVE ROUTING IN MULTICOMPUTER NETWORKS USING VIRTUAL CHANNELS
    DALLY, WJ
    AOKI, H
    [J]. IEEE TRANSACTIONS ON PARALLEL AND DISTRIBUTED SYSTEMS, 1993, 4 (04) : 466 - 475
  • [6] A tight lower bound on the number of channels required for deadlock-free wormhole routing
    Libeskind-Hadas, R
    [J]. IEEE TRANSACTIONS ON COMPUTERS, 1998, 47 (10) : 1158 - 1160
  • [7] Deadlock-Free Fully Adaptive Routing in Irregular Networks without Virtual Channels
    Xiang, Dong
    Yu, Zhigang
    Wu, Jie
    [J]. 2013 12TH IEEE INTERNATIONAL CONFERENCE ON TRUST, SECURITY AND PRIVACY IN COMPUTING AND COMMUNICATIONS (TRUSTCOM 2013), 2013, : 983 - 990
  • [8] ACRO: Assignment of Channels in Reverse Order to Make Arbitrary Routing Deadlock-free
    Kawano, Ryuta
    Nakahara, Hiroshi
    Tade, Seiichi
    Fujiwara, Ikki
    Matsutani, Hiroki
    Koibuchi, Michihiro
    Amano, Hideharu
    [J]. 2016 IEEE/ACIS 15TH INTERNATIONAL CONFERENCE ON COMPUTER AND INFORMATION SCIENCE (ICIS), 2016, : 565 - 570
  • [9] German methodologies for deadlock-free routing
    Park, H
    Agrawal, DP
    [J]. 10TH INTERNATIONAL PARALLEL PROCESSING SYMPOSIUM - PROCEEDINGS OF IPPS '96, 1996, : 638 - 643
  • [10] Transitively Deadlock-Free Routing Algorithms
    Quintin, Jean-Noel
    Vigneras, Pierre
    [J]. 2016 2ND IEEE INTERNATIONAL WORKSHOP ON HIGH-PERFORMANCE INTERCONNECTION NETWORKS IN THE EXASCALE AND BIG-DATA ERA (HIPINEB), 2016, : 16 - 24