代码改变世界

随笔档案-2012年1月30日

C# 线程手册 第三章 使用线程 .NET 对同步的支持

2012-01-30 07:24 by DanielWise, 3332 阅读, 收藏,
摘要: .NET Framework 提供了很多System.Threading,System.EnterpriseService 和 System.Runtime.Compiler 命名空间中的很多类来帮助程序员开发线程安全代码。下表简要地描述了.NET Framework 中的一些同步类。MethodImplAttribute 类正如System.Runtime.CompilerServices 命名空间名字所显式的,这个命名空间中包含影响CLR 运行时行为的属性。MethodImplAttribute是通知CLR某个方法是如何实现的众多属性之一。MethodImplAttribute 构造函数之 阅读全文