Hi --

On Fri, 21 Apr 2006, Andy Gimblett wrote:

> Hi all,
>
> I just ran the example at the end of FAQ 4.2
>
>    http://www.rubycentral.com/faq/rubyfaq-4.html#ss4.2
>
> The FAQ text says this produces:
>
>> onetwo: : 00
>>
>> onetwo: : 11
>>
>> onetwo: : 33
>
> This confused me, so I ran the code and got:
>
>> one: 0
>> two: 0
>> one: 1
>> two: 1
>> one: 3
>> two: 3
>
> which made more sense.  OK, so thread scheduling is nondetermininistic
> and there's no mutual exclusion on stdout, so I can see how the output
> given in the FAQ entry _could_ happen - however, I think the version I
> saw demonstrates the FAQ's point more clearly.
>
> Who should I tell about this?  Raise a bug?  Or is raising the alarm
> hereabouts sufficient?  :-)

You may be looking at the old FAQ.  Have a look at:

   http://www.rubygarden.org/faq/entry/show/24

I think that's the one you mean, and it looks OK.


David

-- 
David A. Black (dblack / wobblini.net)
Ruby Power and Light, LLC (http://www.rubypowerandlight.com)

"Ruby for Rails" PDF now on sale!  http://www.manning.com/black
Paper version coming in early May!