Hi folks, Found a solution to this problem using: #include <pthread.h> int pthread_setname_np(pthread_t thread, const char *name); Now I got custom thread names using top -H, htop (Using Option in "Setup -> Display options -> show custom thread names") and ps -e -T. Also see: http://stackoverflow.com/questions/2369738/can-i-set-the-name-of-a-thread-in-pthreads-linux Regards, Stefan J. -----Ursprüngliche Nachricht----- Von: linux-rt-users-owner@xxxxxxxxxxxxxxx [mailto:linux-rt-users-owner@xxxxxxxxxxxxxxx] Im Auftrag von Michael Haberler Gesendet: Montag, 15. Juli 2013 15:59 An: linux-rt-users@xxxxxxxxxxxxxxx Betreff: RT thread status display? we have an application with several RT threads within a single process - those show up nicely in say 'top -H' how can a correlate a Posix thread id to the PID column in top? If nothing else, we can do it via a log entry Is there a way to pass a string which reappears in top/ps output (like a modifed argv or the like)? (threads are named in our application) what I'm looking for is roughly the equivalent of this http://www.xenomai.org/index.php//proc/xenomai/stat for rt-preempt (in Xenomai the thread names are shown, so no need to correlate thread id's) any better suggestions than ps/top? thanks in advance - Michael -- To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html -- To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html