[Mongrel] Win32 service question

Geoffrey Bays charioteer7 at gmail.com
Tue Nov 20 09:46:51 EST 2007


Csaba: You can run anything multithreaded on Windows by using Ruby
Threads. These are green threads, not native ones, and they are
non-blocking, which is what you would want. Look up some examples of
using the Thread class, which is in the Ruby language core, and you
should be on your way. You can create them in a loop and get many
running. I am new to Ruby, otherwise I would give you a concrete
example.

On Nov 20, 2007 7:46 AM, Csaba Okrona <ochronus at gmail.com> wrote:
> Hi All,
>
> First, I'm new to the list, so I'd like to say hello to all fellow
> mongrelists :)
>
> Second, I'd like to ask you if there's any way to make a simple mongrel
> script run multithreaded?
>
>  No rails, just plain old
>
> class MyHandler < Mongrel::HttpHandler
> .
> .
> .
> h = Mongrel::HttpServer.new("127.0.0.1", "80")
>
> stuff.
>
> Since win32 lacks fork, I don't know if I can make it process multiple
> request simultaneously.
> I've read about the mongrel rails service thing, but that's only for rails,
> if I'm not mistaken.
>
> Thank you in advance,
> Ochronus
>
> _______________________________________________
> Mongrel-users mailing list
> Mongrel-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/mongrel-users
>


More information about the Mongrel-users mailing list