About Question enthuware.ocpjp.v8.2.1125 :
Posted: Sun Dec 08, 2019 6:16 am
Starvation occurs when a single thread is perpetually denied access to a shared resource or lock.
Livelock occurs when two or more threads are conceptually blocked forever, although they are still active and trying to complete their task.
But the questions says "you observe that the lower priority threads rarely get a chance to run".
Doesn't this make the answer Livelock, since there are several threads unable to run, rather than being Starvation which relates to a single thread?
Livelock occurs when two or more threads are conceptually blocked forever, although they are still active and trying to complete their task.
But the questions says "you observe that the lower priority threads rarely get a chance to run".
Doesn't this make the answer Livelock, since there are several threads unable to run, rather than being Starvation which relates to a single thread?