prints thread id