in reply to Is forking the best solution for a CGI running a heavy/slow process?
Yes, that is a good solution. The only other common solution is to implement a queue of some kind, where your CGI just adds things to the queue and then directs users to a page where they can check their progress in the queue. A queue has the advantage that it can limit the number of simultaneous requests being processed, but requires more work to implement.