tag:blogger.com,1999:blog-694855878384792308.post2102831070441404887..comments2024-03-21T06:26:49.387-07:00Comments on Java67: Difference between Thread.yield and Thread.sleep in Java? Answerjavin paulhttp://www.blogger.com/profile/15028902221295732276noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-694855878384792308.post-26808761002981967632015-08-30T04:07:54.737-07:002015-08-30T04:07:54.737-07:00@Junca, to be honest I have not seen real uses of ...@Junca, to be honest I have not seen real uses of Thread.yield(), in theory it did say that it will force Thread to relinquish CPU but there is no control who will get it. javin paulhttps://www.blogger.com/profile/15028902221295732276noreply@blogger.comtag:blogger.com,1999:blog-694855878384792308.post-79771327589029533972015-08-23T11:34:46.607-07:002015-08-23T11:34:46.607-07:00thanks, i did read some in similar in effective ja...thanks, i did read some in similar in effective java 2nd edition. Then we can say that use thread.yield has no sense, or what situations can i use thread.yield ?Anonymoushttps://www.blogger.com/profile/16870127148840498695noreply@blogger.com