Is there a way to print out the current thread id on which the current method is executing on?
(objective-c please)
#include ... mach_port_t machTID = pthread_mach_thread_np(pthread_self()); NSLog(@"current thread: %x", machTID);