Showing posts with label finishing method. Show all posts
Showing posts with label finishing method. Show all posts

Friday, 24 January 2014

Using isAlive() and join() method in java

 how to use isAlive() and Join( ):

Using isAlive( ) and join( )


As mentioned, often you will want the main thread to finish last.Two ways exist to determine whether a thread has finished.


  •   isAlive()
  • join()