----- Original Message ----- 
From: Harry Ohlsen <harryo / zip.com.au>
Newsgroups: comp.lang.ruby
To: ruby-talk ML <ruby-talk / ruby-lang.org>; <undisclosed-recipients: ;>
Sent: Friday, December 14, 2001 8:30 PM
Subject: [ruby-talk:28578] Are Array#delete and Array#push thread safe?


> I'm in the middle of writing something about using Mutex for mutual
> exclusion and was going to use the example of two threads trying to
> update an array as an example.
> 
> Then it dawned on me that maybe that those operations might be designed
> to be thread safe, in which case my example's a bit lame.

They're not thread-safe, so I think 
the example is a valid one...

Hal Fulton