print the thread id