Asynchrony refers to the occurrence [and handling] of events independent of the main program flow. These may be outside events such as the arrival of signals, or [non-blocking] actions instigated by a program that take place concurrently with program execution.
Tag: asynchrony
Episode #140: Threads are Hard
In this episode some bugs turn up in our thread-safe queue class.
Episode #139: Timed Queue
Continuing to build our own thread-safe queue class, today we give it the ability to handle time out enqueues and dequeues.
Episode #137: Mutex
In this episode we introduce the concept of a "critical section", and learn about one of the fundamental primitives that makes multithreaded programming possible.
Episode #136: Dead Thread
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 …
Episode #128: Enumerable Queue
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.
Episode #127: Parallel Fib
Last time around we introduced the Queue class. In this episode, we'll put it to work!
Episode #126: Queue
Today's episode introduces the Queue standard library, and shows how it can be used to coordinate threads.
Episode #062: Fiber
In this episode we'll explore Ruby's lightweight concurrency primitive by using it to emulate the Enumerator class.