//我程序中使用printf打印出来的信息
77 printf("tp_init: creat work thread[%d] 0x%x, %lu\n", i, this->thread_info [ i ].thread_id, this->thread_info [ i ].thread_id);
(gdb)
tp_init: creat work thread[0] 0xf783c700, 140737345996544
//我使用gdb命令打印出来的信息
(gdb) print /x this->thread_info [ i ].thread_id
$1 = 0x7ffff783c700
(gdb) print this->thread_info [ i ].thread_id
$2 = 140737345996544
//进入线程函数,线程生成自己的tid
300 curid = pthread_self(); curid类型为pthread_t
(gdb) n
//我的程序使用printf打印出来的信息
302 printf("cuid = 0x%x, %lu\n", curid, curid);
(gdb) n
cuid = 0xf783c700, 140737345996544