tid $id = $t->tid Returns an object representing the tid (thread id) of a thread. The ID is simply an integer that is incremented each time a new thread is created, starting with zero for the main thread of a program.