Page 1 of 1

About Question enthuware.ocpjp.v7.2.1560 :

Posted: Sun Mar 26, 2017 1:54 pm
by sodomark
It's correct the statement? :<<Even after calling yield() it is possible that the same thread keeps running!!!>>
After yield(), the same thread can be reselected by the scheduler, but it is possible for the current thread to keep running?

Re: About Question enthuware.ocpjp.v7.2.1560 :

Posted: Mon Mar 27, 2017 12:24 am
by admin
Yes, it is possible. It is also possible that the JVM completely ignores the call to yield.