What can cause a thread to become non-runnable?()

题目
单选题
What can cause a thread to become non-runnable?()
A

 Exiting from a synchronized block.

B

 Calling the wait method on an object.

C

 Calling the notify method on an object.

D

 Calling the notifyAll method on an object.

参考答案和解析
正确答案: B
解析: 暂无解析
如果没有搜索结果或未解决您的问题,请直接 联系老师 获取答案。
相似问题和答案

第1题:

What can cause the disasters of gap years?

[A] Intervention of parents. [B] Careful planning. [C] Good health. [D] Realistic expectation.


正确答案:A

第2题:

What can be inferred about Julie Luddon?

A.She is writing a book about cultural negotiations
B.She has already received a bachelor's degree
C.She is studying to become a university professor
D.She wants to work in a foreign country

答案:B
解析:
朱莉·勒登在阿德莱德大学攻读硕士学位。答案为B。

第3题:

Smokers become _______ to nicotine, and on stopping smoking the sudden loss of nicotine can cause unpleasant illnesses.

(A) belong

(B) addict

(C) addicted

(D) belonged


正确答案:C
解答参考:C.固定搭配题。be (become) addicted to sth 指对什么东西上瘾。【译文】吸烟者对尼古丁上瘾,并且在戒烟时由于尼古丁摄入的突然中断会带来一系列的不适。

第4题:

The ‘fsck -p /dev/lv00’ command returned the following message:Not a recognized filesystem type. What is the likely cause of the problem and how should it be resolved?()

  • A、The file system superblock is dirty. It can be replaced from the VGDA
  • B、The logical volume superblock is dirty. It can be replaced from the VGDA
  • C、The file system superblock is dirty. It can be replaced from the secondary copy
  • D、The logical volume superblock is dirty. It can be replaced from the secondary copy

正确答案:C

第5题:

What is the name of the method that threads can use to pause their execution until signalled to continue by another thread? () Fill in the name of the method (do not include a parameter list).


正确答案:"wait"

第6题:

What can cause a lack of oxygen in a chain locker ________.

A.Absorption

B.Osmosis

C.Evaporation

D.Oxidation


正确答案:D

第7题:

When configuring system state conditions with the Cisco SecurityAgent, what is the resulting action when configuring more than one system state condition? ()

  • A、Any matching state condition will result with the state being triggered
  • B、 Once a state condition ismet, the system ceases searching further conditions and will cause the state condition to trigger
  • C、 All specified state conditions are used as part of the requirements tobe met to for the state to trigger
  • D、 Once the state conditions are met, they become persistent and can only be removed using the Reset feature

正确答案:C

第8题:

听力原文:Seeking to maximize profits by assuming inappropriately large financial risk can cause investors to lose sleep.

(2)

A.Assuming inappropriately large financial risk can cause investors to lose sleep.

B.Financial risk will not cause investors to lose sleep.

C.Seeking to maximize profits appropriately can cause investors to lose sleep.

D.No matter how much they earn, the investors will lose sleep.


正确答案:A
解析:录音单句的意思为“通过承担相当大的不合适的金融风险来寻求最大的利润会使投资者失眠。”

第9题:

void waitForSignal() {  Object obj = new Object();  synchronized (Thread.currentThread()) {  obj.wait();  obj.notify();  }  }  Which is true?() 

  • A、 This code may throw an InterruptedException.
  • B、 This code may throw an IllegalStateException.
  • C、 This code may throw a TimeoutException after ten minutes.
  • D、 This code will not compile unless “obj.wait()” is replaced with “((Thread) obj).wait()”.
  • E、 Reversing the order of obj.wait() and obj.notify() may cause this method to complete normally.
  • F、 A call to notify() or notifyAll() from another thread may cause this method to complete normally.

正确答案:B

第10题:

Which two can directly cause a thread to stop executing?() 

  • A、 Exiting from a synchronized block.
  • B、 Calling the wait method on an object.
  • C、 Calling the notify method on an object.
  • D、 Calling the notifyAll method on an object.
  • E、 Calling the setPriority method on a thread object.

正确答案:B,E

更多相关问题