print thread id