Naming Thread
- The Thread class provides methods to change and get them name of a thread
- Each thread has a name
- we can change the name of the thread by using setName()
1. Syntax
- public String getName()
- public void setName(String name)
2. Example
'Back-End > Java_1' 카테고리의 다른 글
[Java] Daemon Thread (0) | 2016.10.10 |
---|---|
[Java] Thread Priority (0) | 2016.10.07 |
[Java] Joining a thread (0) | 2016.10.07 |
[Java] Call a run() directly instead start() (0) | 2016.10.07 |
[Java] Sleeping a thread (0) | 2016.10.07 |