4 ms·
> If your problem is "I have a lot of requests from a web server that are quickly dispatched", then parallel programming doesn't get you anything. why not? If
by jgalt212 12y ago
> If your problem is "I have a lot of requests from a web server that are quickly dispatched", then parallel programming doesn't get you anything.
why not? If a page render has 10 independent processes that must be completed before data can be returned to client, doesn't the pmap function give an approx 10X speed-up? Or are you talking in the aggregate where each request is being handle in its own thread, and then the page render speed is really just I/O bound. But even in that case if the web server is doing some heavy computation (wolfram alpha, for example) easy parallelization of a request can make the web a more effective compute engine.