From: Matias Surdi Date: 2005-12-24T17:09:13+09:00 Subject: Re: multithreaded file access Eero Saynatkari escribi坦: > Matias Surdi wrote: > >>J. Ryan Sobol >>escribi鷓Ηt;>> Crafty test program. Coincidentally, my results differ from yours. >> >>>> >>> >>>Regardless, the important thing is to know that it seems file IO via >>>puts is not thread safe, which I kind of assumed from the beginning. >>>This begs the question: which methods, especially concerning file IO, >>>are thread safe? (if any) >>> >>>~ ryan ~ >>> >>> >> >> >>Hey!!.... I'm now more confused than before posting :-D > > > You should guard your critical section :) The simplest way > is using Mutex from the core. Consult your ri or make a visit > to http://www.ruby-doc.org. > > > E > Thanks everyone for replying...