Click here to Skip to main content
15,892,809 members
Articles / Programming Languages / C#

Memory Stream Multiplexer–write and read from many threads simultaneously

Rate me:
Please Sign up or sign in to vote.
4.76/5 (14 votes)
22 Jul 2012CPOL3 min read 97.9K   1K   52  
MemoryStreamMultiplexer is a MemoryStream like buffer manager where one thread can write and many threads can read from it simultaneously. It supports blocking reads, so that reader threads can call .Read() and wait for some data to be written. Handy for loading data in one thread that is consumed c

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Architect BT, UK (ex British Telecom)
United Kingdom United Kingdom

Comments and Discussions