Friday, 22 April 2016

yield() vs. sleep()


yield()
 
returns the thread to Ready state
sleep() return the thread to Waiting state with the acquired lock

No comments:

Post a Comment

Note: only a member of this blog may post a comment.