Bounded blocking queues
Posted by: Stephen Toub,
on 13 Apr 2006 |
View original | Bookmarked: 0 time(s)
In my last post, I took a look at implementing blocking queues in .NET using semaphores (both System.Threading.Semaphore and a managed semaphore implementation). I defined a blocking queue as one that blocked on a dequeue operation until an item could successfully be removed from the queue, rather than throwing an exception if no items exist in the queue, as is the behavior with System.Collections.Queue and System.Collections.Generic.Queue<T>. However, there are other types of blocking...