Thank you both, Geoffrey and cdr for your help. I didn't know it was threaded on win32 by default :)
Then I don't really get why there's so big performance difference bw/ a unix backed mongrel and a win32 one... On Nov 20, 2007 1:04 PM, cdr <[EMAIL PROTECTED]> wrote: > > Csaba: You can run anything multithreaded on Windows by using Ruby > > Threads. > > > > Second, I'd like to ask you if there's any way to make a simple > mongrel > > > script run multithreaded? > > you get threaded handlers for free, by default. you have to explicitly go > out of your way to defeat this behavior.. grep -i mutex in the rails or > camping handler to see how its done > > > > > > > > Since win32 lacks fork, I don't know if I can make it process multiple > > > request simultaneously. > > fork() is implemented in win32/process extension. not that youd want to > use that, or anything, > > i tried it once in a real-world script that would fork itself and spawn > gcc children and it was very weird, to say the least (lots of return values > were just corrupt garbled crap). compounded by running mingw's bash where > things are wonky already. > > but this doesnt matter, since mongrel's ruby isnt actually forking, > apache-style, to enable concurrency... > > > if youre further curious, check out wyhaines' evented mongrel > _______________________________________________ > Mongrel-users mailing list > Mongrel-users@rubyforge.org > http://rubyforge.org/mailman/listinfo/mongrel-users >
_______________________________________________ Mongrel-users mailing list Mongrel-users@rubyforge.org http://rubyforge.org/mailman/listinfo/mongrel-users