Thread Name

You can set the name of a thread by using setName( ). You can obtain the name of a thread by calling getName( ).

These methods are members of the Thread class and are declared like this:


final void setName(String threadName) 
final String getName( )

Here, threadName specifies the name of the thread.

Home 
  Java Book 
    Thread Conncurrent  

Thread:
  1. Multithreaded Programming
  2. The Main Thread
  3. Thread Name
  4. Thread sleep
  5. Thread Creation
  6. isAlive( ) and join( )
  7. Thread Priorities
  8. Thread Synchronization
  9. Interthread Communication
  10. Suspending, Resuming, and Stopping Threads
  11. Handle Uncaught Exception
  12. ThreadLocal variables