single threaded web servers
Amos Shapira
amos.shapira at gmail.com
Sun Jul 3 05:13:51 IDT 2016
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 <slitt at troubleshooters.com> wrote:
> On Sun, 3 Jul 2016 07:13:13 +1000
> Amos Shapira <amos.shapira at 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 at cs.huji.ac.il
> http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
>
--
<http://au.linkedin.com/in/gliderflyer>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.cs.huji.ac.il/pipermail/linux-il/attachments/20160703/951f45d9/attachment.html>
More information about the Linux-il
mailing list