首页> 外文学位 >CDSCHECKER: A Model-Checker for C/C++ Atomics.
【24h】

CDSCHECKER: A Model-Checker for C/C++ Atomics.

机译:CDSCHECKER:用于C / C ++原子的模型检查器。

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

摘要

Writing low-level concurrent software has traditionally required intimate knowledge of the entire toolchain and often has involved coding in assembly. New language standards have extended C and C++ with support for low-level atomic operations and a weak memory model, enabling developers to write portable and efficient multithreaded code.;Developing correct low-level concurrent code is well-known to be especially difficult under a weak memory model, where code behavior can be surprising. Building reliable concurrent software using C/C++ low-level atomic operations will likely require tools that help developers discover unexpected program behaviors.;In this thesis we present CDSChecker, a tool for exhaustively exploring the behaviors of concurrent code under the C/C++ memory model. We develop several novel techniques for modeling the relaxed behaviors allowed by the memory model and for minimizing the number of execution behaviors that CDSChecker must explore. We have used CDSChecker to exhaustively unit test several concurrent data structure implementations on specific inputs and have discovered errors in both a recently published C11 implementation of a work-stealing queue and a single producer, single consumer queue implementation.;This work also discusses problems with the current C/C++ memory model and presents our own proposed modifications. Using our modifications, we then present additional formalism and a proof of our algorithm's correctness.
机译:传统上,编写低级并发软件需要对整个工具链有深入的了解,并且经常需要在汇编中进行编码。新的语言标准对C和C ++进行了扩展,支持低级原子操作和弱内存模型,从而使开发人员能够编写可移植且高效的多线程代码。众所周知,开发正确的低级并发代码特别困难。弱内存模型,其中的代码行为可能令人惊讶。使用C / C ++低级原子操作构建可靠的并发软件可能需要帮助开发人员发现意外程序行为的工具。在本文中,我们介绍了CDSChecker,该工具可用于详尽探索C / C ++内存模型下的并发代码的行为。 。我们开发了几种新颖的技术来对内存模型允许的宽松行为进行建模,并最大程度地减少CDSChecker必须探索的执行行为。我们已经使用CDSChecker对特定输入上的多个并发数据结构实现进行了详尽的单元测试,并且在最近发布的工作窃取队列的C11实现和单个生产者,单个使用者队列实现中发现了错误。当前的C / C ++内存模型,并提出了我们自己提出的修改方案。然后,使用我们的修改,提出其他形式主义和算法正确性的证明。

著录项

  • 作者

    Norris, Brian.;

  • 作者单位

    University of California, Irvine.;

  • 授予单位 University of California, Irvine.;
  • 学科 Computer Science.
  • 学位 M.S.
  • 年度 2013
  • 页码 115 p.
  • 总页数 115
  • 原文格式 PDF
  • 正文语种 eng
  • 中图分类
  • 关键词

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号