In Python 2.7, how can one know when a thread has finished such that one can maintain a constant buffer of running threads, at least until all processing has finished?
I am trying to keep a buffer of threads (similar to a producer/consumer problem but treating the threads themselves as the resources in the buffer, and a finished thread as being the resource ready for consumption) that, when a thread finishes, puts a new thread in the buffer to start and I can't seem to figure out how this can be done using the threading module and Queues.