donaricano-btn

Call a run() directly instead start()

- Each thread starts in a separate call stack, like this

- Invoking the run() from main thread, the run() method goes onto the current call stack 

1. Problem

- There is no context-switching 

- t1 and t2 will be treated as normal object not thread object


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

[Java] Naming Thread  (0) 2016.10.07
[Java] Joining a thread  (0) 2016.10.07
[Java] Sleeping a thread  (0) 2016.10.07
[Java] Thread Scheduler  (0) 2016.10.07
[Java] Creating thread  (0) 2016.10.05
블로그 이미지

리딩리드

,