From: Tomoyuki Kosimizu Date: 2000-02-11T21:18:04+09:00 Subject: [ruby-talk:01306] Re: Critical sections example? Hi, From: Andrew Hunt Subject: [ruby-talk:01303] Critical sections example? Date: Thu, 10 Feb 2000 21:59:27 -0500 > What is the preferred mechanism to handle concurrent thread access to > variables safely? I use MonitorMixin in /lib/ruby/monitor.rb written by Mr.Maeda. It is used in /lib/ruby/ftplib.rb. If you know Java's `synchronized' block notation, you may want to use MonitorMixin. It is a good sample of Ruby's magic. tomoyuki kosimizu greentea@fa2.so-net.ne.jp