Code for my blog post at http://justbarebones.blogspot.com/2014/04/ruby-concurrency-primer-part-1.html