It’s a globally unique (since the system booted) ID number associated with the thread. It’s super useful when you’re looking at thread issues that span multiple processes, keeping in mind that both
pthread_tand Mach ports are meaningful only within the scope of one process.
You’ll often see it abbreviated as tid.
You can get the tid for a pthread using
pthread_threadid_np. The easiest way to get the tid for a Mach thread is by bouncing through
pthread_from_mach_thread_np, but you can also get it via
Share and Enjoy
Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware
let myEmail = "eskimo" + "1" + "@apple.com"