getThreadId outputs the id number of the currently running thread as an integer. Example:
Thread [show getThreadID] ;1136