软件中断和信号的区别
“软件中断是使用信号传递的”
这是否总是正确的,如果不是,那么
a) 两者之间的区别是什么
如果是,除了传递信号之外,是否还有其他机制可以引发软件中断。
"Software interrupts are delivered using signals"
Is this always true, if not then
a) what is the difference between two
If yes, is there some other mechanism, by which software interrupts are raised, other than delivering signals.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
该引文的作者似乎在非常普遍的意义上使用“软件中断”(即“任何导致程序偏离其通常操作流程且并非源自硬件的事物”)并且“信号”是指特定操作系统(可能源自 unix)使用的特定机制。
The author of that quote appears to be using "Software interrupt" in a very general sense (i.e. "anything that causes a program to diverge from it's usual flow of operation and does not originate in hardware") and "signals" in the sense of a particular mechanism used by a particular operating system (probably unix derived).
是的,软件中断是使用信号传递给操作系统的,这一点始终正确。
事实上,甚至硬件中断本身也是使用信号传递给操作系统的。
信号是一种IPC(进程间通信)机制,“中断机制”使用它来通知发生了某些事情。
Yes its always true that software interrupts are delivered using signals to the operating system.
In fact even hardware interrupts are themselves delivered using signals to operating system.
Signal is an IPC(inter process communication) mechanism that is used by 'interrupt mechanism' to notify that something has occurred.