Return the number of the current thread

getThreadNumber()

Value

Returns the number of the current thread. Returns 0 if this is the main thread.