multithreading - perl cgi threads -
i having bit of problem cgi web application, use ithreads parallel processing, thread have common 'goal'. detach of them, , once find answer, call exit. problem script continue processing after user has closed connection , left, of course if problem resourcewise. there way force exit on parent process if user has disconnected?
afaik create , destroy threads isn't (at least now) perl practice because increase memory usage!
should think in other way job done. solution create pool of threads , send arguments of shared array or thread::queue.
Comments
Post a Comment