by 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();