Fork me on GitHub

Mike Perham of Carbon Five just wrote an excellent post on the Carbon Five Blog called A Modern Guide to Threads where he explains what a thread is and how to avoid race conditions using Ruby’s only synchronization mechanism, the Mutex. Mike advocates using Actors which he uses extensively in his Girl Friday project.

You can find more information about Actors in Mike’s 2011 RubyConf presentation: Actors and Threads - Safer Concurrency for Ruby. Video of that presentation will be posted soon.