Which one of the following statements about what getState() is documented to be used for is true?
Answer: A
The javadoc says the method is designed for monitoring of the system state, not for synchronization control, because the answer can be stale the instant it is returned. Branching on it produces a race. There is also no RUNNING value; executing and merely eligible are both RUNNABLE.
Please log in or register to report this question.