File size: 137 Bytes
71192d1
 
 
 
1
2
3
4
from concurrent.futures import ThreadPoolExecutor

# Shared executor for all CPU-bound tasks
executor = ThreadPoolExecutor(max_workers=4)