NSLog 10b meaning?

牧云@^-^@ 提交于 2019-12-28 04:31:28

问题


Whenever I use NSLog(), it always shows this mysterious "10b" next to the process ID. I know that this is tied somehow to the thread where the NSLog() call was made, but what exactly does it mean? When I try NSLog() from a different thread in the same process, I will get values like 1003, 1103, and 1403. Here is the "Hello, World!" output or NSLog() for reference:

2009-09-15 10:26:38.591 delme[38163:10b] Hello, World!

回答1:


It’s the thread ID; specifically, it’s the mach thread ID. You can get it yourself:

pthread_mach_thread_np(pthread_self())



回答2:


IIRC, it's a thread id.



来源:https://stackoverflow.com/questions/1428544/nslog-10b-meaning

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!