From: "Hal E. Fulton" Date: 2001-11-07T06:47:33+09:00 Subject: [ruby-talk:24470] Re: Is Mutex Reentrant? ----- Original Message ----- From: Jason Voegele Newsgroups: comp.lang.ruby To: ruby-talk ML ; Sent: Tuesday, November 06, 2001 3:26 PM Subject: [ruby-talk:24462] Is Mutex Reentrant? [snip] > I would have thought that mutexes would be reentrant, meaning that a > thread could call synchronize multiple times and not interfere with > itself. So, my question is, are mutexes reentrant? If so, what have > I done wrong? I think that Mutexes are in fact not reentrant. You might want to look at the monitor.rb library for an alternative (unless you can just refactor to avoid the reentrant code). Hal