how do you get current executing thread details?

how do you get current executing thread details?

Postby Kishan » Fri Feb 01, 2013 5:30 am

how do you get current executing thread details?
Kishan
 
Posts: 191
Joined: Tue Jan 29, 2013 4:21 am

Re: how do you get current executing thread details?

Postby javalatte » Tue Feb 05, 2013 12:09 am

Current executing thread's details could be known from the following method calls on the thread object, which itself could be obtained from Thread.currentThread().

//get currrent thread's details
myThread.getId();
myThread.getName();
myThread.getPriority();
myThread.getState();
javalatte
 
Posts: 55
Joined: Tue Jan 29, 2013 2:31 pm


Return to Core Java

Who is online

Users browsing this forum: No registered users and 1 guest

cron