On Mon, Jun 9, 2008 at 4:34 PM,  <jdevito01 / gmail.com> wrote:
> As this .txt file is 200 lines long. I can send 200 individual pages
> now in 3:min33sec i would like to cut that time by a forth by using 4
> threads. I just don't think I know enough enough about threads yet to
> do so. The closest thing I have come up with so far is to have 2
> threads parsing two .txt file with 100 lines each in them.

Chances are, with the MRI threading model, you're not going to get any
speed increase from threading this.  Ruby IO tends to block the entire
interpreter.

-- 
Avdi

Home: http://avdi.org
Developer Blog: http://avdi.org/devblog/
Twitter: http://twitter.com/avdi
Journal: http://avdi.livejournal.com