Hi,

At Sun, 10 Feb 2008 13:19:38 +0900,
Dave Thomas wrote in [ruby-core:15465]:
> Take the following code:
> 
> STDOUT.sync = true
> threads = (1..4).map do |number|
>    Thread.new(number) do |i|
>      print "#{i}\n"
>    end
> end
> threads.each { |t|  t.join }

What's your platform and the version of libc?

Seems an issue related to the implementation of write(2).  In
glibc, mmap seems to be used for ordinary files.

-- 
Nobu Nakada