[New-bugs-announce] [issue36084] Threading: add builtin TID attribute to Thread objects

Jake Tesler report at bugs.python.org
Fri Feb 22 17:46:11 EST 2019


New submission from Jake Tesler <jake.tesler at gmail.com>:

This functionality adds a native Thread ID to threading.Thread objects. This ID (TID), similar to the PID of a process, is assigned by the OS (kernel) and is generally used for externally monitoring resources consumed by the running thread (or process).
This does not replace the `ident` attribute within Thread objects, which is assigned by the Python interpreter and is guaranteed as unique for the lifetime of the Python instance.

----------
messages: 336348
nosy: Jake Tesler
priority: normal
severity: normal
status: open
title: Threading: add builtin TID attribute to Thread objects
type: enhancement
versions: Python 3.8

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue36084>
_______________________________________


More information about the New-bugs-announce mailing list