Question
Which of these are plausible reasons why a thread might be alive, but still not be running?.
Select the four correct answers.
- (a) The thread is waiting for some condition as a result of a
wait()
call. - (b) The execution has reached the end of the
run()
method. - (c) The thread is waiting to acquire the lock of an object in order to execute a certain method on that object.
- (d) The thread does not have the highest priority and is currently not executing.
- (e) The thread is sleeping as a result of a call to the
sleep()
method.
(a), (c), (d), and (e)
Note
The thread terminates once the run()
method completes execution.
PreviousNextRelated