add active_queue feature: wait a bounded time for threads to progress with their tasks