当前位置:网站首页>How to print pthread_ t - How to print pthread_ t
How to print pthread_ t - How to print pthread_ t
2022-06-30 05:48:00 【fyin1314】
problem :
Searched, but don't come across a satisfying answer. Search for , But there is no satisfactory answer .
I know there's no a portable way to print a pthread_t. I know there is no portable way to print pthread_t.
How do you do it in your app? How do you do this in your application ?
Update: to update :
Actually I don't need pthread_t, but some small numeric id, identifying in debug message different threads. Actually, I don't need it pthread_t, It's small numbers id, Identify different threads in debug messages .
On my system (64 bit RHEL 5.3) it's defined as unsigned long int, so it's big number and just printing it eats a valuable place in debug line. In my system (64 position RHEL 5.3) On , It is defined as unsigned long int, So it's a big number , Just printing it takes up a valuable place in the debug line .How does gdb assign short tids?gdb how Distribute short tids?
Solution :
Reference resources : https://stackoom.com/en/question/7Nnm边栏推荐
- Word frequency statistics (string, list)
- The definition of strain was originally from stretch_ Ratio started
- Idea of capturing mobile terminal variant combination
- On line assignment of financial cost management in the 22nd spring of Western Polytechnic University [Full Score answer]
- 2021-10-31
- Create priority queue
- OSPF - authentication and load balancing summary (including configuration commands)
- 炒股用指南针开户交易安全吗?
- Database SQL language 06 single line function
- Responding with flow layout
猜你喜欢
What are membrane stress and membrane strain
Remote sensing image /uda:curriculum style local to global adaptation for cross domain remote sensing image segmentation
Sword finger offer 22 The penultimate node in the linked list
English语法_形容词/副词3级-最高级
Bev instance prediction based on monocular camera (iccv 2021)
Digital signature——
About modifying dual system default startup item settings
Use of OpenCL thread algebra library viennacl
[Motrix] download Baidu cloud files using Motrix
14x1.5cm vertical label is a little difficult, VFP calls bartender to print
随机推荐
Xi'an Jiaotong 21st autumn economics online homework answer sheet (III) [standard answer]
【板栗糖GIS】global mapper—如何把栅格的高程值赋予给点
Leader: who can use redis expired monitoring to close orders and get out of here!
Array pointers and pointer arrays
Huxiaochun came to fengshu electronics to sign a strategic cooperation agreement with Zoomlion
剑指 Offer 22. 链表中倒数第k个节点
PKCs 12:personal information exchange syntax v1.1 translation part I
How does WPS cancel automatic numbering? Four options
We strongly recommend more than a dozen necessary plug-ins for idea development
Luogup2756 pilot pairing scheme problem (maximum flow)
Responsive layout
剑指 Offer 18. 删除链表的节点
Using lazy < t > in C # to realize singleton mode in WPF
Xi'an Jiaotong 21st autumn "computerized accounting" online homework answer sheet (I) [standard answer]
Responding with flow layout
Codeforces C. Andrew and Stones
Solidity - Security - reentrancy attack
3D rotation album
领导:谁再用 Redis 过期监听实现关闭订单,立马滚蛋!
24、 I / O device model (serial port / keyboard / disk / printer / bus / interrupt controller /dma and GPU)