在C#中实现生产者/消费者模式 [英] Implementing the Producer/Consumer Pattern in C#

查看:1311
本文介绍了在C#中实现生产者/消费者模式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用事件和代理在C#中实现生产者/消费者模式?在使用这些设计模式时,需要注意什么资源?有没有需要注意的边缘案例?

How can I implement the Producer/Consumer patterns in C# using Events and Delegates? What do I need to keep an eye out for when it comes to resources when using these design patterns? Are there any edge cases I need to be aware of?

推荐答案

看看这个链接 MSDN上

这篇关于在C#中实现生产者/消费者模式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆