ID EN
Threading

native_id

Python 3.11

The Thread ID (TID) of this thread, as assigned by the OS (kernel). This is a non-negative integer, or None if the thread has not been started. See the get_native_id() function. This value may be used to uniquely identify this particular thread system-wide (until the thread terminates, after which the value may be recycled by the OS).

Syntax

PYTHON
native_id

See Also

get_native_id() Availability