-
Notifications
You must be signed in to change notification settings - Fork 50
Open
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomers
Description
While looking into sockets and threads of datum I noticed that threads have the same name:
ps -L -p 3141459 -o pid,tid,psr,pcpu,stat,comm
PID TID PSR %CPU STAT COMMAND
3141459 3141459 0 0.0 Sl datum_gateway
3141459 3141460 1 0.9 Sl datum_gateway
3141459 3141462 1 0.0 Sl datum_gateway
3141459 3141463 0 0.0 Sl datum_gateway
3141459 3141464 3 0.0 Sl MHD-single
3141459 3141465 2 0.4 Sl datum_gateway
3141459 3141466 1 0.0 Sl datum_gateway
3141459 3141467 5 0.0 Sl datum_gateway
3141459 3141468 6 0.0 Sl datum_gateway
3141459 3141470 4 0.0 Sl datum_gateway
3141459 3142517 7 0.1 Sl datum_gateway
3141459 3142571 4 0.2 Sl datum_gateway
I suggest to call pthread_setname_np() in the threads themselves or after pthread_create() to give them a name to help checking thread stats as above and perhaps debugging.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomers