In a threaded code application, we are using the following code to display the thread id.
sprintf(temp, "CCISTUB : PID[0x%x] TID[0x%x] ",getpid(), pthread_self() );
But if i check thread ID using glance tool in runtime for the same application
thread ID does not match with the application log.
What should be used in place of pthread_self() to match the thread ID shown by glance tool on hp machine?