change thread name on linux (htop)

前端 未结 2 651
悲哀的现实
悲哀的现实 2021-01-31 05:39

I have a multithread application and I would like that htop (as example) shows a different name per each thread running, at the moment what it shows is the \"command line\" used

2条回答
  •  醉话见心
    2021-01-31 06:01

    Since version 0.8.4, htop has an option: Show custom thread names

    Press F2 and select the Display options menu. You should see:

    htop custom thread names

提交回复
热议问题