threading is nice, you can take a look at the pcntl as well or you could use shmop to pass data between php processes.
for me this sounds like a classic view pipeline job. you add it to the queue which will be picked up from a worker running somewhere.