Ruby 1.8.7 リファレンスマニュアル > ライブラリ一覧 > threadライブラリ > Mutexクラス > synchronize
synchronize { ... }
mutex をロックし、ブロックを実行します。実行後に必ず mutex のロッ クを解放します。