If thread a and thread b are running, but not completing, which two could be occurring?
A.
livelock
B.
deadlock
C.
starvation
D.
loose coupling
E.
cohesion
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 each
other.
ClassCastException, MyClass cant cast to OtherThread
A
B
Incomplete question. What is OtherThread?