From: "Morris, Chris" Date: 2002-05-31T22:14:32+09:00 Subject: RE: Threading question > Well, ruby use qsort(). a C function can't be interrupted, > this mean that > other threads are blocked when qsort() run. > > If a thread can run before or after qsort(), this thread > can't modify the > array because ruby use a special flag > > FL_SET(ary, ARY_TMPLOCK); /* prohibit modification during sort */ Ah, so my assumption about Ruby threading is wrong(?) -- it just works out in my case. In other words, Ruby makes the sort call thread-safe, though Array itself as a whole is not (which you showed me with a previous post http://ruby-talk.com/40317). Chris