首页    期刊浏览 2024年12月05日 星期四
登录注册

文章基本信息

  • 标题:Reachability under Contextual Locking
  • 本地全文:下载
  • 作者:Remi Bonnet ; Rohit Chadha ; Mahesh Viswanathan
  • 期刊名称:Logical Methods in Computer Science
  • 印刷版ISSN:1860-5974
  • 电子版ISSN:1860-5974
  • 出版年度:2013
  • 卷号:9
  • 期号:3
  • 页码:1
  • DOI:10.2168/LMCS-9(3:21)2013
  • 出版社:Technical University of Braunschweig
  • 摘要:The pairwise reachability problem for a multi-threaded program asks, given control locations in two threads, whether they can be simultaneously reached in an execution of the program. The problem is important for static analysis and is used to detect statements that are concurrently enabled. This problem is in general undecidable even when data is abstracted and when the threads (with recursion) synchronize only using a finite set of locks. Popular programming paradigms that limit the lock usage patterns have been identified under which the pairwise reachability problem becomes decidable. In this paper, we consider a new natural programming paradigm, called contextual locking, which ties the lock usage to calling patterns in each thread: we assume that locks are released in the same context that they were acquired and that every lock acquired by a thread in a procedure call is released before the procedure returns. Our main result is that the pairwise reachability problem is polynomial-time decidable for this new programming paradigm as well. The problem becomes undecidable if the locks are reentrant; reentrant locking is a \emph{recursive locking} mechanism which allows a thread in a multi-threaded program to acquire the reentrant lock multiple times.
  • 其他关键词:Static analysis, Pushdown reachability, Locks, Reentrant locks.
国家哲学社会科学文献中心版权所有