Code reviewThe bounded queue
The following code has just been written (never run, never tested).
It’s purpose is to serve as a high speed, no locking transport between two threads, once of them producing information, the other consuming it, in a bounded, non blocking manner.
Note that this is done because the default usage of BlockingCollection<T> here generated roughly 80% of the load, which is not ideal
More posts in "Code review" series:
- (26 Jun 2016) The bounded queue
- (15 Apr 2011) Who Can Help Me
- (01 Apr 2011) SharpArchitecture.MultiTenant
- (28 Nov 2007) PetShop 3.0
- (28 Nov 2007) The PetShop Application

Comments
Comment preview