中断在操作系统中的应用(**大学电子信息学院,四川成都610065)摘要:计算机执行期间,系统内如果发生任何非寻常的或非预期的急需处理事件,使得CPU暂时中断当前正在执行的程序而转去执行相应的时间处理程序,待处理完毕后又会返回原来被中断处继续执行或调度新的进程执行的过程
这就是中断过程,文章主要讲述中断在操作系统中的应用,并从以下几方面进行讨论:中断实现的机制,系统调用与中断的关系,最后列举出3-5个硬件中断的例子,并详细的讨论其工作原理
关键词:中断;操作系统;实现机制;系统调用theapplicationofinterruptintheoperatingsystemLIUDi(ElectronicsandInformationEngineering,SichuanUniversity,Chengdu,610065,China)Abstract:duringcomputerexecutioniftherewassomeunusualorunexpectedeventswhatwasbadlyneededtodealwithinthesystem,theCPUinterruptedtemporarilytheprogramwhatwasexecutingandstartedtoexecutethetimehander,whenthebehindwasover,itwouldcontinuetheoriginalwork
Thiswasinterrupt,thearticlefocusedondescribingtheapplicationofinterruptintheoperatingsystem,andwoulddiscussfromthefollowingaspects:theimplementationmechanismofinterrupt,therelation