An invocation of the static method gives the scheduler a hint that the current thread is willing to free the processor. The scheduler is free to ignore this hint. As it is not defined which thread will get the processor after the invocation of , it may even happen that the current thread becomes the “next” thread to be executed.
No comments:
Post a Comment