Hi Bill, I agree with you - it is wrong. RHE refers to needing "a run() method for the thread scheduler to invoke" (p.203). I think it's trying to get at the fact that you don't have to code a direct call to run() but start() just tells the scheduler that the thread's eligible to run. Start() can't call run because when it actually gets to run is system dependent. In that sense it's a bit like garbage collection - you can make something available for garbage collection but when it's collected depends on how the system schedules stuff. Kathy
I agree with your choices A,B. But I didnt understand that the option D (A stop() method kills the currently running Thread). Give your explanation.
posted 18 years ago
The stop() method is now deprecated, so you won't get that on the 1.2 test. It has been replaced by the interrupt() method, but the purpose of the stop() method was to stop the currently running thread.