Forums Register Login

Can we find the priority of main thread?

+Pie Number of slices to send: Send
Hi,

can we find the priority of the main thread.?
+Pie Number of slices to send: Send
Did you check the java.lang.Thread API?

You need to find the current running thread and then find its priority.
+Pie Number of slices to send: Send



Generally, Thread.currentThread ( ) called from within the main method will return a handle to the main thread.

Thanks
Nidhi
+Pie Number of slices to send: Send
Can't .... do .... plaid .... So I did this tiny ad instead:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 1128 times.
Similar Threads
Thread Priority
wait/notify
Switching of threads !!!
Thread Related Problem
Threading
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 00:38:14.