0

Can any one explain more about how to use set priority() method

22nd Dec 2016, 5:09 PM
auhan
auhan - avatar
2 odpowiedzi
+ 1
Thread.MIN_PRIORITY minimum (1) Thread.MAX_PRIORITY maximum (10) setPriority(int level) eg: setPriority (5) setts medium priority
22nd Dec 2016, 6:41 PM
Kibrom
Kibrom - avatar
+ 1
For example, if there are two threads in competition to execute one wants to print a value and the other wants to update it, priority is a mecanism to solve this conflict.
27th Dec 2016, 9:42 PM
Fethi HADJ ABDELKADER
Fethi HADJ ABDELKADER - avatar