首页> 外文期刊>Science of Computer Programming >Deadlock and starvation free reentrant readers-writers: A case study combining model checking with theorem proving
【24h】

Deadlock and starvation free reentrant readers-writers: A case study combining model checking with theorem proving

机译:无死锁和饥饿的可重入读者-作家:模型检查与定理证明相结合的案例研究

获取原文
获取原文并翻译 | 示例

摘要

The classic readers-writers problem has been extensively studied. This holds to a lesser degree for the reentrant version, where it is allowed to nest locking actions. Such nesting is useful when a library is created with various procedures each starting and ending with a lock operation. Allowing nesting makes it possible for these procedures to call each other. We considered an existing widely used industrial implementation of the reentrant readers-writers problem. Staying close to the original code, we modelled and analyzed it using a model checker resulting in the detection of a serious error: a possible deadlock situation. The model was improved and checked satisfactorily for a fixed number of processes. To achieve a correctness result for an arbitrary number of processes the model was converted to a specification that was proven with a theorem proven Furthermore, we studied starvation. Using model checking we found a starvation problem. We have fixed the problem and checked the solution. Combining model checking with theorem proving appeared to be very effective in reducing the time of the verification process.
机译:经典的读者-作家问题已得到广泛研究。对于可重入版本,在允许嵌套锁定操作的情况下,这种限制程度较小。当创建具有各种过程(每个过程以锁定操作开始和结束)的库时,这种嵌套很有用。允许嵌套使这些过程可以相互调用。我们考虑了折返的读者-作者问题的现有广泛使用的工业实现。紧贴原始代码,我们使用模型检查器对其进行建模和分析,从而检测到严重错误:可能出现死锁情况。对模型进行了改进,并针对固定数量的过程进行了令人满意的检查。为了获得任意数量过程的正确性结果,将模型转换为已通过定理证明的规范。此外,我们研究了饥饿。使用模型检查,我们发现了饥饿问题。我们已经解决了问题并检查了解决方案。将模型检查与定理证明相结合似乎在减少验证过程的时间方面非常有效。

著录项

  • 来源
    《Science of Computer Programming》 |2011年第2期|p.82-99|共18页
  • 作者单位

    Institute for Computing and Information Sciences, Radboud University Nijmegen, Netherlands;

    Institute for Computing and Information Sciences, Radboud University Nijmegen, Netherlands;

    Institute for Computing and Information Sciences, Radboud University Nijmegen, Netherlands;

    Institute for Computing and Information Sciences, Radboud University Nijmegen, Netherlands,School of Computer Science, Open University of the Netherlands, Netherlands;

  • 收录信息 美国《科学引文索引》(SCI);美国《工程索引》(EI);
  • 原文格式 PDF
  • 正文语种 eng
  • 中图分类
  • 关键词

    model checking; theorem proving; readers-writers algorithm; spin; PVS;

    机译:模型检查;定理证明读者-作家算法;旋转聚苯乙烯;

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号