I am creating a GUI multithreading application with Python3. After a while playing with it is starting to go slower and slower and the number of threads is increasing a lot.
I am using htop to see the number of threads and also the name, but all of them appear as "python3" so I can not distinguish them.
I have something like:
myapp
|_ python3
|_ python3
|_ python3
...
I am creating the threads in this way:
recorder = Thread(target=self.record, name='recorder')
recorder.start()
requester = Thread(target=self.run, name='requester')
requester.start()
So in the tree view of htop I spected to see something like:
myapp
|_ recorder
|_ requester
...
Should I create the threads in a different way? What am I missing?