首页 > 试题广场 >

Typically,at the completion of

[问答题]

Typically,at the completion of a device I/O ,a single interrupt is raised and appropriately handled by the host processor.In certain settings,however,the code that is to be executed at the completion of the I/O can be broken into two separate pieces,one of which executes immediately after the I/O completes and schedules a second interrupt for the remaining piece of code to be executed at a later time.What is the purpose of using this strategy in the design of interrupt handlers?

推荐

The purpose of this strategy is to ensure that the most critical aspect of the interupt handling code is performed first and the less critical portions of the code is delayed for the future.For instance, when a device finishes an I/O operation,the device control operatins corresponding to declaring the device as no longer being busy are more important in order to issue future operations.However,the task of copying the data provided by the device to the appropriate user or kernel memory regions can be delayed for a future point when the CPU is idle.In such a scenario, a latter lower priority interrupt handler is used to perform the copy operation.

发表于 2018-03-25 10:21:56 回复(0)