+ 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 Respuestas
+ 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