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
On Sun, 3 Jul 2016 07:13:13 +1000
Amos Shapira 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
On Sat, 2 Jul 2016 10:49:35 +0300
Erez D wrote:
> but node.js requires code in js. and i am more of a c++ guy
> (and of course c++ is more efficient than js)
Not just any Javascript, but Javascript with gratuitous callbacks, in
order that nothing blocks anything else.
Thanks for the explanation. I like this.
How would a single-threaded process take advantage of muti- CPU?
On 2 Jul 2016 5:49 PM, "Erez D" wrote:
> doing some research on servers i found out that i can handle more
> connections simultaneously as single threaded.
> on thread
you didn't say you needed dynamic content - your example "code" seemed
to focus on serving static content.
try to be more specific about what you need
--guy
On 07/02/2016 06:41 PM, Erez D wrote:
On Sat, Jul 2, 2016 at 2:00 PM, guy keren
On Sat, Jul 2, 2016 at 2:00 PM, guy keren wrote:
>
> https://en.wikipedia.org/wiki/Thttpd
dont know if it fits my requierments but last version dated 2014
>
>
> and
>
> https://www.lighttpd.net/
uses fastcgi. fastcgi is multithreaded.
>
>
> both existed before
https://en.wikipedia.org/wiki/Thttpd
and
https://www.lighttpd.net/
both existed before anyone used javascript on server side, as far as i know
(and they are written in C, not C++)
--guy
On 07/02/2016 10:49 AM, Erez D wrote:
doing some research on servers i found out that i can handle more
doing some research on servers i found out that i can handle more
connections simultaneously as single threaded.
on thread per connection i have a huge overhead, just think of the default
2MB stack per connection - 1000 connections is 2GB ram just for stack.
however as single threaded, i can