I would like to set the title of a thread (the title seen in ps or top)in Python in order to make it visible to process tracer programs. All the threads of a process are always called python or called file name when /usr/bin/python is used and the script is called via ./script.
Now, I want to change each thread's name. I have a simple script with 4 threads (incl main thread). I use threading to start the threads.
Is there a way that I could achieve this without having to install third-party stuff? Any guidance is appreciated.