ID EN
Threading

active_count

Python 3.11

Return the number of Thread objects currently alive. The returned count is equal to the length of the list returned by enumerate().

Syntax

PYTHON
threading.active_count()

See Also

Thread enumerate()