【24h】

The code of many colors

机译:许多颜色的代码

获取原文

摘要

We introduce a thread colors model as a way to express design intent concerning the relationships between threads, executable code, and shared state. By expressing the model as annotations in code, it is possible to formally link the model with source code and to analyze the consistency of model and code in a composable manner. By using annotations as cut-points, APIs can be annotated and compliance with library threading policies can be evaluated. This is illustrated using case study examples from published code that show how thread coloring models can assist in assuring policy compliance and in identifying concurrency errors.
机译:我们将线程颜色模型作为一种方法来表达关于线程,可执行代码和共享状态之间的关系的设计意图。通过在代码中表达模型作为注释,可以使用源代码正式链接模型,并以可编译的方式分析模型和代码的一致性。通过使用注释作为切割点,API可以注释并符合库线程策略。使用来自已发布代码的案例研究示例来说明,该示例显示线程着色模型如何帮助确保策略合规性和识别并发错误。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号