Click here to Skip to main content
15,897,704 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 98.3K   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

Alternatives

Members may post updates or alternatives to this current article in order to show different approaches or add new features.

No alternatives have been posted.

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