I'm looking to create a thread pool mechanism which will limit the number of threads in the system in any given time. I have a several functions creating many threads and i want to create mutual thread pool for that.
From what i understood once a thread list is given to the future's threadpool it has to finish first since a 'with' statement must be used.
Can the futures module do that or do i have to write it myself?