arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1208.2754cs.PLcs.LO
收藏

信号处理的操作语义

Operational semantics for signal handling

Maxim Strygin, Hayo Thielecke

摘要:

信号是Unix中进程间通信的一种轻量级形式。当进程接收到信号时,控制流被中断,并运行先前安装的信号处理程序。信号处理让人联想到异常处理和进程的并发交织。在本文中,我们研究了不同的方法来形式化信号处理的操作语义,并比较了一系列的例子。我们发现,大步骤风格的操作语义是非常适合建模信号处理。我们通过采用标准ML定义中定义的异常约定,将异常处理与信号处理的大步语义集成在一起。语义需要捕获信号处理和异常处理之间的复杂交互。

英文摘要:

Signals are a lightweight form of interprocess communication in Unix. When a process receives a signal, the control flow is interrupted and a previously installed signal handler is run. Signal handling is reminiscent both of exception handling and concurrent interleaving of processes. In this paper, we investigate different approaches to formalizing signal handling in operational semantics, and compare them in a series of examples. We find the big-step style of operational semantics to be well suited to modelling signal handling. We integrate exception handling with our big-step semantics of signal handling, by adopting the exception convention as defined in the Definition of Standard ML. The semantics needs to capture the complex interactions between signal handling and exception handling.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑