Examples of Ruby multiple-threads Programming