Get thread names when using Process.threads()
Author: bleedingeCreated Mar 31, 2015Updated Aug 11, 2026
Labelslinuxnew-api
Since that information is already in the /proc filesystem stat file, it would be great if the tuple returned by threads() could contain the thread name (2nd parameter in the stat file) next to the pid, utime and stime.
Source: giampaolo/psutil