首页> 外文期刊>Operating systems review >Interrupts as Threads
【24h】

Interrupts as Threads

机译:作为线程中断

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

摘要

Most operating system implementations contain two fundamental forms of asynchrony; processes (or equiva-lently, internal threads) and interrupts. Processes (or threads) synchronize using primitives such as mutexes and condition variables, while interrupts are synchronized by preventing their occurrence for a period of time. The latter technique not only is expensive, but it locks out interrupts on the possibility that an interrupt will occur and interfere with the particular critical section of code that was interrupted. In the Solaris 2 implementation of UNIX [Eykholt 92] [Kleiman 92], these two forms are unified into a single model, threads. Interrupts are converted into threads using a low overhead technique. This allows a single synchronization model to be used throughout the kernel. In addition, it lowers the number of times in which interrupts are locked out, it removes the overhead of masking interrupts, and allows modular code to be oblivious to the interrupt level it is called at.
机译:大多数操作系统实现都包含两种基本的异步形式:进程(或等效地,内部线程)和中断。进程(或线程)使用互斥量和条件变量等原语进行同步,而中断则通过在一段时间内防止它们的发生来进行同步。后一种技术不仅成本高昂,而且还可以在发生中断并干扰被中断的代码的特定关键部分的可能性时将中断锁定。在UNIX [Eykholt 92] [Kleiman 92]的Solaris 2实现中,这两种形式被统一为一个模型,即线程。使用低开销的技术将中断转换为线程。这允许在整个内核中使用单个同步模型。此外,它减少了锁定中断的次数,消除了屏蔽中断的开销,并使模块化代码可以忽略被调用的中断级别。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号