From: David Vallner Date: 2006-01-14T15:26:18+09:00 Subject: Re: ruby Thread in CGI application? On Sat, 14 Jan 2006 06:02:13 +0100, Stefan Kaes wrote: > David Vallner wrote: >> 2. On a multiple CPU system, where algorithms used in processing the >> request might benefit from parallelism running multiple processors. >> Though then again, you probably wouldn't do CPU-intensive operations as >> these algorithms tend to be in Ruby anyway. As more realistic examples, >> asynchronous database / remote calls come to mind if you want to >> implement your own timeout policy to those to handle badly written >> third party libraries graciously to prevent your application from >> hanging up. > Currently you won't benefit from multiple CPUs as Ruby doesn't use > native threads. > > -- stefan > Slipped my mind. I was talking in general anyway. And doesn't the pthread binding let you use native threads? (Didn't really do anything with it himself) David Vallner