tag:blogger.com,1999:blog-694855878384792308.post8154508099368858351..comments2024-03-21T06:26:49.387-07:00Comments on Java67: 10 Things about Threads Every Java Programmer Should Knowjavin paulhttp://www.blogger.com/profile/15028902221295732276noreply@blogger.comBlogger7125tag:blogger.com,1999:blog-694855878384792308.post-90073030681356525952017-07-06T05:18:04.863-07:002017-07-06T05:18:04.863-07:00Hello Vijay, yes you can put a Thread on sleep and...Hello Vijay, yes you can put a Thread on sleep and reuse it. This is what most of thread pool do instead of creating new threads, which obviously take more time. You can see <a href="http://www.java67.com/2015/06/how-to-pause-thread-in-java-using-sleep.html" rel="nofollow">how to pause thread in Java</a> for more details.javin paulhttps://www.blogger.com/profile/15028902221295732276noreply@blogger.comtag:blogger.com,1999:blog-694855878384792308.post-69384858654410760742017-07-05T22:52:32.270-07:002017-07-05T22:52:32.270-07:00Can we stop a thread and restart the thread, inste...Can we stop a thread and restart the thread, instead of creating new threads everytime?Vijay Sridharahttps://www.blogger.com/profile/15371396072107495938noreply@blogger.comtag:blogger.com,1999:blog-694855878384792308.post-44612855401349915492016-01-18T02:42:52.825-08:002016-01-18T02:42:52.825-08:00I think it was already mentioned, before!I think it was already mentioned, before!Anonymoushttps://www.blogger.com/profile/07976103750801579967noreply@blogger.comtag:blogger.com,1999:blog-694855878384792308.post-5436991310509764692015-06-22T10:21:06.701-07:002015-06-22T10:21:06.701-07:00Another point would be on how to deal with excepti...Another point would be on how to deal with exceptions ( mostly unchecked exceptions ) in your concurrent code. What happens to your thread if an unchecked exception is thrown by the run method implementation? Is your thread going to die? <br />These checks can save you from surprises at runtime. Anonymoushttps://www.blogger.com/profile/15798126923814884997noreply@blogger.comtag:blogger.com,1999:blog-694855878384792308.post-54800091509369465242014-11-27T07:10:41.361-08:002014-11-27T07:10:41.361-08:00I guess that the above is already been covered in ...I guess that the above is already been covered in above article .. Adminhttps://www.blogger.com/profile/02205990829853383447noreply@blogger.comtag:blogger.com,1999:blog-694855878384792308.post-10964405405100268842014-06-30T19:30:36.427-07:002014-06-30T19:30:36.427-07:00One more thing about java threads are that they ar...One more thing about java threads are that they are unpredictable, you can not say when your thread is started or running, its all governed by thread scheduler.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-694855878384792308.post-58792632800149863382014-03-12T03:37:02.353-07:002014-03-12T03:37:02.353-07:00Great article, can you elaborate more about OS thr...Great article, can you elaborate more about OS threads that actually executing the java threads? Which java thread states are assigned by the OS threads? Anonymoushttps://www.blogger.com/profile/05458163719774409811noreply@blogger.com