Is calling yield() functionally equivalent to calling sleep(0) for threads
with the same priority?