【单选题】【消耗次数:1】
关于线程设计,下列描述正确的是( )
线程对象必须实现Runnable接口
启动一个线程直接调用线程对象的run()方法
Java提供对多线程同步提供语言级的支持
一个线程可以包含多个进程
参考答案:
复制
纠错
相关题目
【判断题】 windows系统提供多线程技术
①  正确
②  错误
【单选题】 方法 resume()负责恢复下列哪一个线程的执行( )。
①  通过调用 stop()方法而停止的线程
②  通过调用 sleep()方法而停止的线程
③  通过调用 wait()方法而停止的线程
④  通过调用 suspend()方法而停止的线程
【单选题】 一个线程在任何时刻都处于某种线程状态(thread state),例如运行状态、阻塞状态、就绪状态等。一个线程可以由选项中的哪种线程状态直接到达运行状态?( )
①  死亡状态
②  阻塞状态(对象lock池内)
③  阻塞状态(对象wait池内)
④  就绪状态
【判断题】 3.所谓线程同步就是若干个线程都需要使用同一个synchronized修饰的方法。( )
①  正确
②  错误
【单选题】 在进程与线程的关系中,下列( )是错误的。
①  一个进程可以包含多个线程
②  进程之间的切换快于线程
③  各个线程可以共享整个进程的所有资源
④  Unix中最小的调度单位是线程
【判断题】 6.当线程类所定义的run( )方法执行完毕,线程的运行就会终止。( )
①  正确
②  错误
【单选题】 仅仅使用委托delegate能够实现子线程对主线程的访问吗?
① 
②  不能
【单选题】 下面关于线程的叙述中,正确的是?
①  不论是系统支持线程还是用户级线程,其切换都需要内核的支持
②  线程是资源的分配单位,进程是调度和分配的单位
③  不管系统中是否有线程,进程都是拥有资源的独立单位
④  在引入线程的系统中,进程仍是资源分配和调度分派的基本单位
【单选题】 方法resume()负责恢复哪些线程的执行( )
①  通过调用stop()方法而停止的线程。
②  通过调用sleep()方法而停止的线程。
③  通过调用wait()方法而停止的线程。
④  通过调用suspend()方法而停止的线程。
【单选题】 多线程的和交互式的程序语言是。
①  VisualBasic
②  VisualC++
③  Java
④  .net
随机题目
【判断题】 答题说明:句子没有语法错误请选择“正确”,有语法错误请选择“错误”Dont allow children watch TV during mealtimes or homework periods.
①  正确
②  错误
【判断题】 答题说明:句子没有语法错误请选择“正确”,有语法错误请选择“错误”Try to relax when you study. You cannot remember things when you are tired or unhappy.
①  正确
②  错误
【多选题】 Among the outstanding inventions of modern times, television___________ must be included.
①  clearly
②  obviously
③  definitely
④  friendly
【多选题】 Children are heavy television viewers who are strongly___________ by what they see.
①  influence
②  influenced
③  affected
④  effect
【多选题】 Department stores usually___________ customers with various kinds of goods.
①  match
②  service
③  supply
④  provide
【多选题】 Thats beautiful, but___________ .
①  its too bad
②  its too expensive
③  it costs too much
④  the price is too high
【多选题】 You can train yourself to remember better. Here are some_________ .
①  ideas
②  suggestions
③  information
④  furniture
【多选题】 They told us that the company_______________ the law.
①  obey
②  obeyed
③  dont break
④  didnt break
【多选题】 A: I have a headache. I feel weak and tired.B: You ___________ go to see a doctor.
①  should
②  should not
③  had better
④  had better not
【多选题】 The quality of childrens program is___________ important.
①  especially
②  particularly
③  extremely
④  impossibly