With procps-ng (https://gitlab.com/procps-ng/procps) there are output option -L
and -T
which will print threads names:
$ ps -eL
$ ps -eT
-l
long format may be used with them:
$ ps -eLl
$ ps -eTl
but -f
option will replace thread name with full command line which is the same for all threads.