( ). , , , , , - ( , - , , , , !).
. / concurrency, .
-, IAbstract, /, , -.
Also, if you are comfortable, you can also look at the latest Async CTP1 DataFlow data library, which has the latest support for this template using the Parallel Library. Alternatively, you can use BlockingCollectionto implement this template.
Stackoverflow also has questions revolving around your question with some excellent answers. Just search for producer-consumer to read them.
source
share