问题 单项选择题

Java的线程调度采用的策略是( )。

A.先到先服务

B.先到后服务

C.后到先服务

D.不确定

答案

参考答案:A

解析: 本题考查的是线程的基本概念。选项A正确,安排线程队列中等待CPU时间的线程被CPU服务,称为线程调度。Java的线程调度采用优先级基础上的先到先服务策略;选项B和选项C错误,其实它们是同一个意思;选项D错误,在有些操作系统和有些语言中线程调度同时采用先到后服务和先到先服务的策略,但在Java中采用的是先到先服务的策略。本题的答案是A。

选择题
阅读理解

阅读理解

Beijing - The public has responded with vigorous support for an NPC deputy’s proposal to extend the

Spring Festival holiday from three days to 10.

     More than 78 percent of about 27,600  respondents to a poll on www.people.com.cn <http://www.

/> voted in favor of the idea of Li Jing, who is also the mayor of Meishan city in South-west

China's Sichuan province.  Li   said the lunar new year festival holiday was too short for family reunions,

especially fog the nation's  220  million migrant workers.

     With hundreds of millions of people on the move during such a short time span,the holiday puts great

stress on the public transport system and suppresses tourism,  he added. He suggested the ho1iday be

extended and cover the three adjacent (毗连的) weekends, which means  the public could take a total

of 16 days off and floating population could spend the Lantern Festival,which falls on the 15th day of the

lunar new year, with their families.

     People would  then have sufficient time to fully enjoy the  traditional  holiday with their families, Li said

during an interview with People's Daily Online on Friday.

     Most online voters agreed that extending the holiday  will ease the burden on public transport and

strengthen family ties. "The Spring Festival is an occasion for family reunions and should be longer than  

the  National  Day holiday," one responder said  in an online post.  "Every year,  I wish I could spend

more time at home for  the Spring Festival,  but I always have to go back to work. I hope the NPC will

approve this  proposal.

     " Another online comment read:   "Extending the Spring Festival holiday could prevent  the  annual  

transportation crush, which has in recent years resembled an exodus (出走) of fleeing refugees (难民)''.

     Most of the about 13 percent  who  opposed the idea citied difficulties readjusting to work after the

break. Some pointed out that office moral (士气) was generally low during the first week after the holiday. "After thesix-day holiday, many people come back to work feeling absent-minded," one respondent said. Some who opposed the extension suggested adding the Lantern Festival as an official holiday.

     Another 10 percent said lawmakers should carefully study the impacts before they make any decisions

on holidays.

1. Which of the following is NOT the reason why Li Jing suggested extending the Spring Festival holiday?

A. The floating population could spend the Lantern Festival.

B. People could spend more money and this could promote consumption.

C. The lunar new year festival holiday was too short for family reunions.

D. The holiday puts great stress on the public transport system and suppresses tourism

2. What was Li Jing's plan for the lunar new year festival holiday?

A. It could cover the two adjacent weekends.

B. The holiday would be from the first day of the lunar year.

C. He added the Lantern Festival as an independent official holiday.

D. The public could take a total of 16 days off including the Lantern Festival.

3. The underlined word "crush" in the sixth paragraph probably means “______” .

A. uncomfortable pressure caused by a great crowd of people

B. a drink made by pressing fruit and used as juice

C. a traffic accident resulting from traveling too fast

D. people's eagerness to go home to meet their families

4. Why were some netizens against extending the holiday?

A. It was a waste of time.

B. people would not earn much money.

C. It would have a bad effect on China's economy.

D. people wouldn't be in a good working stag after so long a holiday.