threading naming threads threads can be namedwhich can be very useful when debugging an application with multiple threads in the following examplethree threads have been createdtwo have been explicitly given name related to what they are doing while the middle one has been left with the default name we then start all three threads and use the threading enumerate(function to loop through all the currently live threads printing out their namesthe output from this program is given blowabc mainthread worker thread- daemon abcbacacbcbacbaabccbacbacba as you can see in addition to the worker thread and the daemon thread there is mainthread (that initiates the whole programand thread- which is the thread referenced by the variable and uses the default thread name