Yes I know it's possible to fork multiple processes with one thread in each and all that jazz.
I'm asking in the context of Erez' response - if he runs single-threaded code on a multiprocessor hardware, how would he take advantage of more than one processor core? On 3 July 2016 at 08:35, Steve Litt <sl...@troubleshooters.com> wrote: > On Sun, 3 Jul 2016 07:13:13 +1000 > Amos Shapira <amos.shap...@gmail.com> wrote: > > > Thanks for the explanation. I like this. > > How would a single-threaded process take advantage of muti- CPU? > > Threads is just one method of multiprocessing. IIRC, back in the day > Apache multiprocessed by forking a new process for every HTTP > connection. Certainly those processes would be apportioned among the > many processors or cores. > > SteveT > > Steve Litt > June 2016 featured book: Troubleshooting: Why Bother? > http://www.troubleshooters.com/twb > > _______________________________________________ > Linux-il mailing list > Linux-il@cs.huji.ac.il > http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il > -- <http://au.linkedin.com/in/gliderflyer>
_______________________________________________ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il