问题 单项选择题

下列说法正确的是( )

A.线程的终止一般可通过两种方法实现:自然撤消(线程执行完)或是被停止(调用 stop()方法)

B.一个暂时终止运行的线程(例如,睡眠或阻塞)在排除了终止原因后直接运行

C.一个线程因为输入输出操作被阻塞时,执行resume()方法可以使其恢复就绪状态

D.调用了suspend()方法,也可以使线程进入死亡状态

答案

参考答案:A

解析: 线程的终止一般可通过两种方法实现:自然撤消(线程执行完)或是被停止(调用stop()方法)。目前不推荐通过调用 stop()来终止线程的执行,而是让线程执行完。所以选项A的说法是正确的。

选择题
完形填空
完形填空
     One student took a box of chicken to class.Another carried on a cellphone __1__ and still another
whistled loudly every time the __2__ turned his back.Reform school?No. College.
    More and more, professors say, they are coming across __3__ students in their classrooms.Many of
today's young scholars arrive late, leave __4__, talk loud or take care of personal __5__ such as paying
bills during class.Why are the students behaving badly?"Because they can, , " said a student of University
of North Texas."A lot of the time, , the professors let them get away with it."
     Some educators say it is time to bring politeness back to their classrooms and even __6__ taking some
of the blame for bad behavior.They say that rude students are by no means the majority but that one of
them can ruin an entire __7__.
     People are __8__ when they learn that impolite behavior is becoming more and more common in
__9__ education, , says Dr. Gerald Amanda, , a counselor at City College of San Francisco.They __10__
some high school students to misbehave but think those who get to __11__ will behave more politely.
     Dr. Amanda believes that society in general has become more tolerant of rude behavior and that people
in power, , including professors, , no longer __12__ standards for __13__.That leads to a growing
imprudence(轻率行为)among some college students."There's a great deal of bad behavior in the world
around them, , and young people see it and __14__ disrespect, , "said Dr. Amanda, , __15__ that
sometimes students "have no idea that they are being rude."
( )1. A. line      
( )2. A. professor  
( )3. A. selfish    
( )4. A. late      
( )5. A. feeling    
( )6. A. enjoy      
( )7. A. school    
( )8. A. delighted  
( )9. A. better    
( )10. A. expect    
( )11. A. work      
( )12. A. change    
( )13. A. teaching  
( )14. A. prepare  
( )15. A. speaking  
B.conversation  
B.student      
B.cheating      
B.early        
B.interest      
B.hate          
B.company      
B.surprised    
B.more          
B.hope          
B.college      
B.break        
B.politeness    
B.grow          
B.adding        
C.message    
C.president  
C.rude      
C.noisily    
C.computer  
C.start      
C.society    
C.interested
C.higher    
C.forbid    
C.learning  
C.set        
C.thinking  
C.develop    
C.warning    
D. picture    
D. classmate  
D. hardworking
D. quietly    
D. business    
D. avoid      
D. class      
D. encouraged  
D. younger    
D. wish        
D. knowledge  
D. reach      
D. progress    
D. improve    
D. wishing