From: Eero Saynatkari Date: 2005-12-24T09:16:23+09:00 Subject: Re: multithreaded file access 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 -- Posted via http://www.ruby-forum.com/.