Which of the following may pause/stop the current thread? 1) Calling Thread.Yield() 2) Calling stop() on an object of class Thread 3) Calling someObject.wait() 4) Calling someObj.notify() 5) Calling waitForAll() on a MediaTracker Object The answer is 1,2,3,5 .. but I would think the answer should just be 1,2,3 .. what is 'waitForAll()' just a user-defined method? Is that what I should assume? I assumed I missed something in the Thread section.
Joined: Jun 30, 2000
JQPlus is correct. Most times when you see waitFor... type of methods, they are methods that will release locks until something has finished. Bill