Controlled Owicki-Gries Concurrency: Reasoning about the Preemptible eChronos Embedded Operating System

June Andronick, Corey Lewis, Carroll Morgan
{"title":"Controlled Owicki-Gries Concurrency: Reasoning about the Preemptible eChronos Embedded Operating System","authors":"June Andronick, Corey Lewis, Carroll Morgan","doi":"10.4204/EPTCS.196.2","DOIUrl":null,"url":null,"abstract":"We introduce a controlled concurrency framework, derived from the Owicki-Gries method, for describing a hardware interface in detail sufficient to suppor t the modelling and verification of small, embedded operating systems (OS’s) whose run-time responsiveness is paramount. Such real- time systems run with interrupts mostly enabled, including during scheduling. That differs from many other successfully modelled and verified OS’s that typically reduce the complexity of concurrency by running on uniprocessor platforms and by switching interrupts off as much as possible. Our framework builds on the traditional Owicki-Gries method, for its fine-grained concurrency is needed for high-performance system code. We adapt it to support explicit concurrency control, by providing a simple, faithful representation of the hardware interface that allows software to control the degree of interleaving between user code, OS code, interrupt handlers and a scheduler that controls context switching. We then apply this framework to model the interleaving behavior of the eChronos OS, a preemptible real-time OS for embedded micro-controllers. We discuss the accuracy and usability of our approach when instantiated to model the eChronos OS. Both our framework and the eChronosmodel are formalised in the Isabelle/HOL theorem prover, taking advantage of the high level of automation in modern reasoning tools.","PeriodicalId":92263,"journal":{"name":"Mars (Los Angeles, Calif.)","volume":"30 1","pages":"10-24"},"PeriodicalIF":0.0000,"publicationDate":"2015-11-12","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"17","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Mars (Los Angeles, Calif.)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.4204/EPTCS.196.2","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 17

Abstract

We introduce a controlled concurrency framework, derived from the Owicki-Gries method, for describing a hardware interface in detail sufficient to suppor t the modelling and verification of small, embedded operating systems (OS’s) whose run-time responsiveness is paramount. Such real- time systems run with interrupts mostly enabled, including during scheduling. That differs from many other successfully modelled and verified OS’s that typically reduce the complexity of concurrency by running on uniprocessor platforms and by switching interrupts off as much as possible. Our framework builds on the traditional Owicki-Gries method, for its fine-grained concurrency is needed for high-performance system code. We adapt it to support explicit concurrency control, by providing a simple, faithful representation of the hardware interface that allows software to control the degree of interleaving between user code, OS code, interrupt handlers and a scheduler that controls context switching. We then apply this framework to model the interleaving behavior of the eChronos OS, a preemptible real-time OS for embedded micro-controllers. We discuss the accuracy and usability of our approach when instantiated to model the eChronos OS. Both our framework and the eChronosmodel are formalised in the Isabelle/HOL theorem prover, taking advantage of the high level of automation in modern reasoning tools.
受控的Owicki-Gries并发:关于可抢占的ecronos嵌入式操作系统的推理
我们从Owicki-Gries方法中引入了一个受控并发框架,用于详细描述硬件接口,以支持小型嵌入式操作系统(OS)的建模和验证,这些操作系统的运行时响应性至关重要。这样的实时系统运行时大多启用了中断,包括在调度期间。这与许多其他成功建模和验证的操作系统不同,这些操作系统通常通过在单处理器平台上运行和尽可能地关闭中断来降低并发性的复杂性。我们的框架建立在传统的Owicki-Gries方法之上,因为高性能系统代码需要它的细粒度并发性。我们通过提供一个简单、忠实的硬件接口表示,使软件能够控制用户代码、操作系统代码、中断处理程序和控制上下文切换的调度程序之间的交错程度,从而对其进行调整,以支持显式的并发控制。然后,我们应用该框架来模拟ecronos操作系统的交错行为,ecronos是嵌入式微控制器的可抢占实时操作系统。我们在实例化ecronos操作系统建模时讨论了我们的方法的准确性和可用性。我们的框架和ecronosmodel都是在Isabelle/HOL定理证明中形式化的,利用了现代推理工具中的高水平自动化。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信