Get a sneak peek at the possible future of Ruby concurrency, with guest chef Steve Klabnik!
How do you get multithreaded code right? The first step is to see if you can avoid using threads at all! The other day I was adapting an email course …
Global settings can cause havoc when threads are introduced. Learn when and how to use Ruby's thread-local variables instead.
In which we put some fears about thread-safety to the test, and to rest.
In this episode, we'll move logging into a dedicated, low-priority thread.
Today's episode introduces the concept of thread-local variables, and shows how they can be put to use in an ActiveRecord-like library.
In this episode we'll explore a novel technique for testing multithreaded code. The lockstep library can be found here: https://github.com/avdi/lockstep
Concurrent programming is hard, and one of the things that makes it so hard is that a thread can unexpectedly die without giving the programmer any indication. In this episode …
Queue, somewhat surprisingly, is not enumerable. Which is all the excuse we need to have some more fun with the Enumerator class, in today's episode.
Last time around we introduced the Queue class. In this episode, we'll put it to work!