in reply to Running perl threads in loop

A much better design is to spawn threads which accept requests from some sort of queue and process them repeatedly ... remaining alive the entire time. A thread is not a subroutine, even though it runs one.