Re: [Haskell-cafe] System calls and Haskell threads

2011-11-03 Thread David Barbour
On Thu, Nov 3, 2011 at 10:22 AM, David Barbour wrote: > It is correct in context. Mighttpd does not use the -Nx argument to create > multiple OS threads, instead uses a `prefork` model that creates separate > processes to balance user invocations. Using multiple processes instead of > multiple Ha

Re: [Haskell-cafe] System calls and Haskell threads

2011-11-03 Thread David Barbour
On Thu, Nov 3, 2011 at 8:35 AM, Andreas Voellmy wrote: > I just read Kazu Yamamoto's article on a high performance web server in > the latest Monad.Reader, and I came across a statement that doesn't sound > correct to me. He says: > > "When a user thread issues a system call, a context switch occu

Re: [Haskell-cafe] System calls and Haskell threads

2011-11-03 Thread Johan Tibell
On Thu, Nov 3, 2011 at 8:35 AM, Andreas Voellmy wrote: > I just read Kazu Yamamoto's article on a high performance web server in > the latest Monad.Reader, and I came across a statement that doesn't sound > correct to me. He says: > > "When a user thread issues a system call, a context switch occu

[Haskell-cafe] System calls and Haskell threads

2011-11-03 Thread Andreas Voellmy
I just read Kazu Yamamoto's article on a high performance web server in the latest Monad.Reader, and I came across a statement that doesn't sound correct to me. He says: "When a user thread issues a system call, a context switch occurs. This means that all Haskell user threads stop, and instead th