HP-Socket icon indicating copy to clipboard operation
HP-Socket copied to clipboard

set thread name for epoll worker thread, so that we can observe the c…

Open 0xhellord opened this issue 1 year ago • 1 comments

set thread name for epoll worker thread, so that we can observe the cpu usage of every worker thread easily in top -H -p $pid.

0xhellord avatar Mar 28 '23 15:03 0xhellord

fixed at the dev branch, HP-Socket worker threads would set a unique thread name.

Other threads like Linux/src/common/Thread.h, should set thread name by user self. For example invoke pthread_setname_np() at the entry of user thread proc.

ldcsaa avatar Jan 02 '24 11:01 ldcsaa