- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
(注意:这不是关于中断 Java/.NET 线程,而是关于内核模式中断。)
你好,
维基百科在 Interrupt handler 中有关于中断线程的说法。文章:
Interrupt threads
Several operating systems - Solaris, NetBSD, Mac OS X, WinCE and FreeBSD, for example - use different scheme known as interrupt threads. An interrupt handler provided by the device driver is just a high-priority thread which runs with interrupts enabled and, more importantly, may block on mutex. This greatly simplifies locking in the kernel. Also, interrupt thread may be preempted by higher-priority interrupt thread.
最佳答案
硬件通过中断通知操作系统某些事件。当发生错误或当某些外围设备有新数据可用时(用户按下一个键,一个数据包到达网络,一个计时器到期,......),它们会被引发。系统需要快速处理这些中断(以便它看起来响应迅速)。
它们由内核处理。通常,当一个这样的中断到来时,当前运行的代码被停止,并调用内核的一个函数。必须快速响应中断以拥有响应系统,因此它们不能阻止内核等待某些资源,或做类似的事情。经典的解决方案是有一个哑中断函数,只记录中断的次数并返回,然后在内核的主循环中,检查是否有中断发生并调用真正的处理程序。
由于这些中断可以被屏蔽(不可屏蔽中断除外 - NMI),内核可以在内核模式下产生一些线程,并且只让它们取消屏蔽并处理它们。由于这些线程独立于主内核线程,因此它们可以阻塞,前提是有足够的线程来处理线程被阻塞时可能到达的中断。
关于kernel - 什么是中断线程?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4552807/
关闭。此题需要details or clarity 。目前不接受答案。 想要改进这个问题吗?通过 editing this post 添加详细信息并澄清问题. 已关闭 9 年前。 Improve th
请参阅以下玩具示例。 任何帮助将不胜感激!谢谢! shinyApp( ui = fluidPage( actionButton("btnId", "I want a line break he
我收到如下 JSON 响应: Lorem ipsum ¦dolor sit amet 我想做的是替换所有broken bars (|)。 我尝试过 .replaceAll("\u00A6", "");
我正在尝试学习图像特征检测技术。 我已经设法检测到水平线(不间断/连续),但是我无法检测到图像中的所有虚线/断线。 这是我的测试图片,你可以看到有虚线和一些文本/框等。 到目前为止,我使用了以下代码,
我有一个 json 文件,其中包含一些文本,其中一些文本可能有一些断线 "surchargeNoteText":"Please note \r \n that pre-payments will ta
我正在尝试制作一个 html + css 网站,我试图为一个跨度(具有 .float 类)制作一个正确的 float ,但它打破了一条线,我想知道如何防止它打破一个线?我尝试了 display:inl
我有 2 个 float div,我想将它们放在同一行上,它们加起来超过 1024 像素宽,因此它们需要水平窗口滚动,但尽管它们用 white-space:nowrap;
我是一名优秀的程序员,十分优秀!