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.
bill bozeman
Ranch Hand
Joined: Jun 30, 2000
Posts: 1070
posted
0
JQPlus is correct. Most times when you see waitFor... type of methods, they are methods that will release locks until something has finished. Bill
Anonymous
Ranch Hand
Joined: Nov 22, 2008
Posts: 18944
posted
0
Ok thanks Bill!
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.