スレッド数のカウント

現在実行されているスレッドの数を調べるのは、

import threading

threading.active_count()