问题 单项选择题

下列中断中,哪一个不属于强迫性中断

A.设备出错

B.断电

C.时间片到时

D.执行print语句

答案

参考答案:C

解析: 中断机制是计算机设施中的基本设施之一,它在系统中起着通信联络的作用,以协调系统对各种外部资源的响应和处理。一般将中断源分为两类:即强迫性中断和自愿性中断。自愿性中断是正在运行程序时有意识安排的,通常由程序员在编制程序时,因要求操作系统提供服务而有意识使用访管指令或系统调用,从而导致中断的。而强迫性中断是正在运行的程序所不期望的,它们是否发生,何时发生都无法预料。这类中断大致有以下几种:
1)输入/输出中断是来自通信或各种外部设备的中断,用以反馈通信或设备的工作状况;
2)硬件故障中断是机器发生错误时的中断,用以反馈硬件在执行过程中出现的故障;
3)时钟中断是硬件或软件时钟到时引起的中断;
4)程序性中断是因运行过程中的问题所引起的中断,用于反馈程序执行过程中出现的意外情况。
按照上面对各种中断的定义可知,选项A、D属于输入输出中断,B属于硬件故障中断。而选项C是属于自愿性中断而不是强迫性中断事件。

阅读理解

(二)

A

How Do Animals Catch Their ZZZ’s?

Different creatures have developed some pretty creative ways to get their rest and stay safe. The lizard(蜥蝎)likes to sleep at the far end of small branches hanging out over a pond or lake in the rain forest. If a snake tries to slither up the branch to eat it ,it will shake the branch and knock the lizard off ,and the lizard will fall safely into the water. Chameleons can change color to match their surroundings in order to hide even while sleeping.

Corillas(大猩猩)like to sleep high in the trees. They build a new bed every night, sometimes taking up to half an hour to pile branches ,twigs ,and leaves into a comfortable bed .Birds also find it safe to sleep in the trees, but unless they have eggs or young chicks ,they don’t use a nest .They just lock their feet around a branch and hang on .A special tendon(腱)in their legs in automatically tight when they are at rest ,so they won’t let go and fall.

Dolphins live underwater ,but must come to the surface to breather .Scientists now believe that dolphins may sleep with only half their brain, while the other half stays awake to keep them safe and breathing. Seals also do this ,lying on their sides on the surface of the water with one flipper underwater paddling to keep their noses above the surface. Some ducks may also have this ability, and actually sleep with one eye closed and one eye open.                          

56.How many animals are mentioned in this passage?

A.6.                       B.7.                       C.8.                       D.9.

57.How does a chameleon protect itself while sleeping?

A.By changing its body colors.                 B.By hinging out over a pond.

C.By sleeping with half their brain.          D.By making beds with branches.

58.Why will not birds fall when they are at rest?

A.They build nests and sleep in them.       B.They fall asleep automatically.

C.They have a loose tendon in their legs.   D.They lock their feet around a branch.

59.What does the writer intend to tell us?

A.The cleverest animal is the gorilla because it can make beds.

B.Differences in habitat could lead to different living habits.

C.The ways animals catch their ZZZ’s are pretty much he same .

D.In order to protect themselves most animals choose not to sleep.

单项选择题