Linux C/C++编程:prctl与pthread_setname_npprctlpthread_setname_np
prctl理论// 用 prctl 给线程命名, prctl是个系统调用#include <sys/prctl.h> int prctl(int option, unsigned long arg2, unsigned long arg3, unsigned long arg4, unsigned long arg5);实践#include <zconf.h>#include <sys/prctl.h>#incl