Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ActiveState/code
/ recipe-577187.py
File
recipe-577187.py
recipes/Python/577187_Python_Thread_Pool/recipe-577187.py:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
from
Queue
import
Queue
2
from
threading
import
Thread
3
4
class
Worker(Thread):
Callers
nothing calls this directly
Calls
6
randrange
Class · 0.90
range
Function · 0.85
add_task
Method · 0.80
wait_completion
Method · 0.80
ThreadPool
Class · 0.70
enumerate
Function · 0.50
Tested by
no test coverage detected