Re: single threaded web servers

Amos Shapira <[email protected]>
Newsgroups gmane.linux.region.israel
Message-ID <CAF9n_WW+WxN46sbhy8aETipsOqHtD4DPTKDumP-fr-6-hQvWVg@mail.gmail.com>
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 <[email protected]> wrote:

> On Sun, 3 Jul 2016 07:13:13 +1000
> Amos Shapira <[email protected]> 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
> [email protected]
> http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
>



-- 
<http://au.linkedin.com/in/gliderflyer>

_______________________________________________
Linux-il mailing list
[email protected]
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.