Hello if i wanted to get the priority of a thread how should I code? | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
+ 1

Hello if i wanted to get the priority of a thread how should I code?

2nd Jan 2017, 4:56 PM
AmZ
AmZ - avatar
2 ответов
+ 3
call Thread.currentThread(); it will return a thread object of currently executing thread. then print that thread object it will give you it's priority.---- [thread name, priority, thread group]
2nd Jan 2017, 5:35 PM
Ashwaghosh Sadanshiv
Ashwaghosh Sadanshiv - avatar
0
thank you bro
2nd Jan 2017, 5:37 PM
AmZ
AmZ - avatar