Running the samples requires a recent Ruby version. You may run all examples directly via
ruby <example.rb>except for safe_double_checked_locking.rb which requires the
concurrent-ruby gem.
If you have Bundler installed (gem install bundler), you may run the file via
bundle install
bundle exec ruby safe_double_checked_locking.rbThe code is released under the MIT License.