Project

General

Profile

Actions

Bug #703

closed

string output duplication occurs if the same file descriptor written to in different threads

Bug #703: string output duplication occurs if the same file descriptor written to in different threads

Added by rogerdpack (Roger Pack) almost 17 years ago. Updated over 14 years ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
Backport:
[ruby-core:19668]

Description

=begin
ruby-dev:32566

a = Thread.new { p '4'}
b = Thread.new { p '3' }
a.join
b.join

results in
"4"
"3"
"4"
"3"

because the buffer is modified simultaneously by two threads within io_fflush [I think].
=end

Actions

Also available in: PDF Atom