C#3.5中的线程安全集合 [英] thread safe collections in C# 3.5

查看:221
本文介绍了C#3.5中的线程安全集合的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,


我如何在C#3.5 System.Collections中实现线程安全集合.仅在c#4.0中提供并发命名空间.如何使用多线程和锁定进行缓存.等待您的答复.
问候,
Sham

Hello All,


How do i implement thread safe collections in C# 3.5 System.Collections.Concurrent namespace is available in c# 4.0 only.How to use muli threading and locking for caching .waiting for your reply.

Regards,
Sham

推荐答案

尝试以下
Try this http://msdn.microsoft.com/en-us/library/system.collections.queue(v=VS.80).aspx[^], it''s from .Net 2.0, should be usable in .Net 3.5 I think.


这篇关于C#3.5中的线程安全集合的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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