nerdexam
Oracle

1Z0-804 · Question #79

Given the fragment: If thread a and thread b are running, but not completing, which two could be occurring?

The correct answer is A. livelock B. deadlock. A: A thread often acts in response to the action of another thread. If the other thread's action is also a responseto the action of another thread, then livelock may result. A thread often acts in response to the action ofanother thread. If the other thread's action is also a…

Concurrency

Question

Given the fragment:

If thread a and thread b are running, but not completing, which two could be occurring?

Exhibit

1Z0-804 question #79 exhibit

Options

  • Alivelock
  • Bdeadlock
  • Cstarvation
  • Dloose coupling
  • Ecohesion

How the community answered

(20 responses)
  • A
    80% (16)
  • C
    10% (2)
  • D
    5% (1)
  • E
    5% (1)

Explanation

A: A thread often acts in response to the action of another thread. If the other thread's action is also a responseto the action of another thread, then livelock may result. A thread often acts in response to the action ofanother thread. If the other thread's action is also a response to the action of another thread, then livelock mayresult. B: Deadlock describes a situation where two or more threads are blocked forever, waiting for

Topics

#livelock#deadlock#starvation#thread states

Community Discussion

No community discussion yet for this question.

Full 1Z0-804 Practice