tag:blogger.com,1999:blog-694855878384792308.post2648939098524780912..comments2024-03-15T23:19:22.318-07:00Comments on Java67: Difference between wait and sleep in Java Thread? Examplejavin paulhttp://www.blogger.com/profile/15028902221295732276noreply@blogger.comBlogger9125tag:blogger.com,1999:blog-694855878384792308.post-34384311893249706832017-02-21T03:33:12.158-08:002017-02-21T03:33:12.158-08:00Yes, that's correct but more importantly it do...Yes, that's correct but more importantly it doesn't release the lock. javin paulhttps://www.blogger.com/profile/15028902221295732276noreply@blogger.comtag:blogger.com,1999:blog-694855878384792308.post-52962737785476542612017-02-20T09:20:26.716-08:002017-02-20T09:20:26.716-08:00Thread.sleep(long millis) is meant for introducing...Thread.sleep(long millis) is meant for introducing pause, releasing CPU and giving another thread an opportunity to execute....<br />IS THIS CORRECT?<br />BIMAL MODAKhttps://www.blogger.com/profile/00770455002306672435noreply@blogger.comtag:blogger.com,1999:blog-694855878384792308.post-18222189187201812922015-05-28T03:21:24.789-07:002015-05-28T03:21:24.789-07:00good!!!!good!!!!Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-694855878384792308.post-60396768334865363632014-10-13T03:30:53.259-07:002014-10-13T03:30:53.259-07:00goodgoodAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-694855878384792308.post-22137136962446212472014-09-10T06:09:45.753-07:002014-09-10T06:09:45.753-07:00Very good explanation.Very good explanation.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-694855878384792308.post-60730595842215247052014-07-11T02:47:36.865-07:002014-07-11T02:47:36.865-07:00Excellent Comparison ... Excellent Comparison ... Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-694855878384792308.post-80588258127284629342013-06-14T12:08:54.370-07:002013-06-14T12:08:54.370-07:00like, great..like, great..Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-694855878384792308.post-66057533036782719552013-05-01T20:51:42.433-07:002013-05-01T20:51:42.433-07:00Why, Apple and Oranges, isn't it both stop thr...Why, Apple and Oranges, isn't it both stop thread from further processing? or both paused current thread. I agree on intent though, since wait is clearly for a condition, i..e wait until certain condition is true, while sleep() is just a momentary pause i.e. sleep for 100 ms etc.Jamesnoreply@blogger.comtag:blogger.com,1999:blog-694855878384792308.post-34466712660665003342012-09-25T01:36:20.514-07:002012-09-25T01:36:20.514-07:00Great comparison between wait vs sleep but isn'...Great comparison between wait vs sleep but isn't comparing wait() with sleep() is like comparing Oranges with Apple ?Anonymousnoreply@blogger.com