in reply to Re: Processor or Memory
in thread Reaped: Processor or Memory

Apache2 is multi-threaded, AFAIK, when a request is received it spawns off a new thread which the O/S then schedules on any available core.

Replies are listed 'Best First'.
Re^3: Processor or Memory
by zek152 (Pilgrim) on Jul 19, 2011 at 13:51 UTC

    Yes. Apache2 is multi-threaded. However that does not mean that it is optimized for multiple-cores. I can't comment on Apache2 but I do know that often there is an overhead to using a different core (because of memory transfers etc.)

    There has been a lot of progress made in the last few years in getting more use out of those multiple cores. An interesting project is I belive that gcc 4.3.2 has support for some of the pragmas with the -fopenmp option.

    Managing resources across cores is a relatively new challenge and will require new ways of programming to conquer.