Hello if i wanted to get the priority of a thread how should I code? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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 Answers
+ 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