问题
单项选择题
下列关于线程调度的叙述十,错误的是( )。
A.调用线程的sleep()方法,可以使比当前线程优先级低的线程获得运行机会
B.调用线程的yeild()方法,只会使与当前线程相同优先级的线程获得运行机会
C.当有比当前线程的优先级高的线程出现时,高优先级线程将抢占CPU并运行
D.具有相同优先级的多个线程的调度‘定是分时的
答案
参考答案:C
下列关于线程调度的叙述十,错误的是( )。
A.调用线程的sleep()方法,可以使比当前线程优先级低的线程获得运行机会
B.调用线程的yeild()方法,只会使与当前线程相同优先级的线程获得运行机会
C.当有比当前线程的优先级高的线程出现时,高优先级线程将抢占CPU并运行
D.具有相同优先级的多个线程的调度‘定是分时的
参考答案:C
完形填空。 | |||
![]() A peacock and a nightingale It was a fine day. A peacock was dancing happily in the forest. He began to __1__ suddenly because he saw a nightingale __2__ in a tree. He said to the nightingale sadly, "You have a sweet __3__ , but I don't have." Just then the king of birds came. He asked, "Peacock, why are you so __4__ ? " the peacock said to __5__ , "I have such a beautiful body, but my voice is so bad that everyone will __6__ me." The king of birds said, "You don't __7__ to be sad. All things have their own strong points (优点) and weaknesses. For example, you have a beautiful body but don't have a sweet voice. A nightingale has a sweet voice, but he doesn't __8__ as beautiful as you. __9__ you should learn to live __10__ your weakness. Do you think it's right? | |||
( ) 1. A. laugh ( ) 2. A. sitting ( ) 3. A. voice ( ) 4. A. active ( ) 5. A. her ( ) 6. A. laugh at ( ) 7. A. want ( ) 8. A. watch ( ) 9. A. So ( ) 10. A. on | B. cry B. working B. noise B. sad B. me B. agree with B. need B. see B. And B. with | C. sing C. singing C. sound C. calm C. him C. wait for C. think C. look C. But C. in |