donaricano-btn

Thread Priority

- Each thread have a priority

- Thread schedular schedules the threads according to their priority(preemptive scheduling)


1. 3 constants defined in Thread

- public static int MIN_PRIORITY

- public static int NORM-PRIORITY

- public static int MAX-PRIORITY

- Default is 5(NORM), MIN is 1, MAX is 10


2. Example


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

[Java] Thread pool  (0) 2016.10.10
[Java] Daemon Thread  (0) 2016.10.10
[Java] Naming Thread  (0) 2016.10.07
[Java] Joining a thread  (0) 2016.10.07
[Java] Call a run() directly instead start()  (0) 2016.10.07
블로그 이미지

리딩리드

,