首页 > 试题广场 >

When multiple interrupts from

[问答题]

When multiple interrupts from different devices appear at about the same time,a priority scheme could be used to determine the order in which the interrupts would be serviced.Discuss what issues need to be considered in assigning priorities to different interrupts.

推荐

A number of issues need to be considered in order to determine the priority scheme to be used to determine the order in which the interrupts need to be serviced.First,interrupts raised by devices should be given higher priority than traps generated by the user program; a device interrupt can therefore interrupt code used for handling system calls.Second,interrupts that control devices might be given higher priority than interrupts that simply perform tasks such as copying data served up a device to user/ kernel bufters,since such tasks can always

be delayed.Third,devices that have realtime constraints on when its data is handled should be given higher priority than other devices.Also,devices that do not have any form of buffering for its data would have to be assigned higher priority since the data could be available only for a short period of time.

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