问题 单项选择题

下列关于线程优先级的说法有误的是( )。

A. 线程的优先级数值越大,表示该线程优先级越低

B. 新建线程将继承创建它的父线程的优先级

C. NORM_PRIORITY代表普通优先级,默认值是5

D. 一般情况下,主线程具有普通优先级

答案

参考答案:A

解析:线程的优先级数值越大,表示该线程优先级越高。注意:①其中MAX_PRIORITY代表10,表示该线程优先级最高MIN_PRIORI- TY代表1,表示该线程优先级最低。②可以通过setPhriority()方法来设定线程的优先级。

完形填空
Mike has loved flying since he was small. When he was three years old, his dad took him to an air show. Mike loved the sounds of the plane and he   31  of becoming an airplane pilot(飞行员) some day. As Mike grew up, he learned as   32   as he could about flying. He wanted to go to flying school  33  university. He kept on 34   his parents about it all the time. At that time, pilot training was very   35  . Mike’s parents couldn’t afford it.
Later Mike became a salesman. He hoped to get lots of money for flying school. He traveled  36  America for his factory. He liked to travel,    37    by plane. To save money, he usually stayed in cheap hotels.
One morning, Mike   38   to Atlanta. On the plane, after breakfast, he went to   39  . Some time later, he woke up. The two men beside him were talking in a   40  voice. When Mike heard the word “hijack(劫持)”, he nearly  41  out of his seat, but he pretended(假装) he was still   42  . He listened when the two men talked. Mike quickly learned what was                  43  . They planned to hijack the plane to Cuba. This made Mike very   44  . He knew he had to stop them before they began their    45   .
Mike pretended to use the washroom. On the way he met a hostess(空姐) and told her about the coming   46  . A moment later, the passengers were told that there was something wrong with the plane. Soon the plane landed at the    47   airport.
The two men received a   48   when they saw twenty police officers were    49    them at the airport.
Later Mike was given free flying training as a reward.    50   he became a pilot and flew happily ever since. Now his story is well known in the United States.
小题1:
A.spokeB.heardC.dreamedD.thought
小题2:
A.littleB.muchC.easilyD.quickly
小题3:
A.as well as B.such asC.because ofD.instead of
小题4:
A.warningB.talkingC.askingD.complaining
小题5:
A.expensiveB.cheapC.difficultD.enjoyable
小题6:
A.alongB.towardsC.throughD.around
小题7:
A.neverB.widelyC.exceptD.especially
小题8:
A.flewB.cameC.movedD.drove
小题9:
A.workB.sleepC.restD.bed
小题10:
A.loudB.nervousC.lowD.serious
小题11:
A.ranB.walkedC.jumpedD.dropped
小题12:
A.awakeB.asleepC.quietD.careless
小题13:
A.sayingB.changingC.discussingD.happening
小题14:
A.sadB.angryC.painfulD.careful
小题15:
A.planB.storyC.challengeD.accident
小题16:
A.dangerB.troubleC.flyingD.training
小题17:
A.safestB.biggestC.nearestD.farthest
小题18:
A.surpriseB.welcomeC.messageD.present
小题19:
A.looking forB.waiting forC.asking forD.talking about
小题20:
A.SoB.SinceC.ThoughD.Then
判断题