Hi everybody,
following question is full of doubt. can any body suggest the answer?
Q: Which of the following can prevent a
thread from executing?
(1) a call to its pause method
(2) a call to Thread.yield() method
(3) another thread is given higher priority
(4) a call to its hald() method.
I belive (1) & (4) are certainly not the right answers. But how about (2) & (3). slighly confusing. because (2) does not gurantee to prevent a thread from executing always.
may be 4??