donaricano-btn

Joining a thread

- join() waits for a thread to die


1. Syntax

- public void join()throws InterruptedException

- public void join(long milliseconds)throws InterruptedException


2. Example



'Back-End > Java_1' 카테고리의 다른 글

[Java] Thread Priority  (0) 2016.10.07
[Java] Naming Thread  (0) 2016.10.07
[Java] Call a run() directly instead start()  (0) 2016.10.07
[Java] Sleeping a thread  (0) 2016.10.07
[Java] Thread Scheduler  (0) 2016.10.07
블로그 이미지

리딩리드

,