问题 单项选择题

计算机运行过程中,遇到突发事件,要求CPU暂时停止正在运行的程序,转去为突发事件服务,服务完毕,再自动返回原程序继续运行,这个过程叫做中断。发生中断的原因称为中断源,它是 (7) ,中断源都有规定的优先级别,中断屏蔽的作用是 (8)

(8)处填()。

A.不允许响应任何中断

B.改变各中断源响应中断时的优先次序

C.只屏蔽优先级别低的中断

D.只屏蔽优先级别高的中断

答案

参考答案:B

解析:

计算机运行程序过程中,遇到突发事件,CPU暂停正在执行的程序转去为突发事件服务,服务完毕又自动返回原程序,这个过程称为中断,引起中断的原因称为中断源。需要特别注意这里的突发事件,不是任意事件,而是设计计算机时已经周密考虑过的指定的特定事件,但发生的时间是任意的。针对每一个中断源必须设计对应的中断服务程序,有的放矢地解决中断源提出的要求。许多中断源同时提出中断时,响应必须有先后之分,因此给每个中断源规定了一定的优先级别,先响应级别高的中断请求,再处理优先级低的中断请求。各个中断源的级别也是设计计算机时规定好的,不能随意改变。为了改变中断源的响应次序,为每个中断源设置了中断屏蔽位,当其屏蔽位为1时,说明该中断源已被屏蔽不能申请中断。用软件的方法可以改变每个中断的屏蔽位,凡是屏蔽位为1的中断源都不能再请求中断,余下的屏蔽位为0中断源再按优先次序进行服务。因此试题(8)的答案是B。

选择题
阅读理解

Express delivery: How you can buy your groceries from a virtual supermarket

Aug, 1st, 2011 Daily Mail

A “virtual supermarket” consisting of posters of goods put on platform walls is set to be introduced at London Underground stations. Passengers “shop” by scanning QR—Quick Response—codes of the items they want to buy using their smart phones. These goods are later delivered to their home address. Supermarket giant(巨头) Tesco successfully trialed the hi-tech store in a South Korean underground station and there are now plans to bring the concept to Britain.

NYPD to Scan Facebook, Twitter for Trouble

Aug, 11th, 2011 Forbes

The New York Police Department announced it will form a new unit to search social media as part of its law enforcement(执行) efforts, responding to the criminals’ growing use of these sites to plan and celebrate illegal activities. The NYPD unit created particularly to comb social media sites like Facebook, Twitter, and BlackBerry messenger for information on planned crimes and their criminals.

Space Junk(太空垃圾) reaching “tipping point”, report warns

Sep 3rd, 2011 Toronto Sun

The amount of debris(碎片) orbiting the Earth has reached “a tipping point” for crashes, which would produce more debris that may be dangerous to astronauts and satellites, according to a US study. According to the US Space Surveillance Network, the number of orbital debris jumped from 9,949 in December 2006 to 16,094 in July 2011.

小题1:The “virtual supermarket” would be introduced to Britain because of            .

A. the successful experience of a hi-tech store in South Korea

B. the wide use of smart phones for scanning QR codes

C. the large varieties of goods in the supermarket

D the convenient home delivery system around London

小题2:we can learn from the news that            .

A.people with mobile phones can shop at London Underground stations

B.Facebook, Twitter, and BlackBerry messenger are not popular in the US

C.the amount of space junk has more than doubled in the past few years

D.more and more criminals are using social media sites for crimes小题3:what does the underlined word “comb” in the second piece of news mean?

A.Create.

B.Operate.

C.Block.

D.Search.小题4:The third piece of news will be in the           section of the newspaper.

A.sports

B.opinion

C.science

D.business