Linux interrupts and abnormal sleep problems

Source: Internet
Author: User

Interrupts and Exceptions:

Interrupts represent only asynchronous interrupts, and exceptions represent synchronous interrupts, so system calls are exception handling, not interrupt processing.

Here the exception handling is can sleep block, because the exception processing required data is stored in the exception stack, and each process has an exception stack, so exception handling and process is associated, so that the exception processing can block, be dispatched out???

Synchronous interrupts (such as system calls, page faults) are representative of the current process, which can be block. My understanding is that the interruption is not associated with any process, if it is block, then its context must be saved to resume execution, but how to restore it to execute it? You can only set the state of the process that is running at that moment to block, and so on, to reschedule. This is obviously unreasonable for the process: I run well, you interrupt the priority high, then I can let you run, you are finished if the dispatch does not occur, then I run. But why would you interrupt the block to put me in the opposite block, the system call can be block because it is associated to a specific process. Is the process itself is not satisfied with the request, then should be block.

Http://bbs.chinaunix.net/thread-2115820-2-1.html

http://blog.csdn.net/lanmanck/article/details/7282667

Linux interrupts and abnormal sleep problems

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.