.net - Are Static classes thread safe -


i have gone through msdn written static classes thread safe. article meant version 1.1...

http://msdn.microsoft.com/en-us/library/d11h6832(v=vs.71).aspx

all public static members (methods, properties, fields, , events) within .net framework support concurrent access within multithreaded environment. therefore, .net framework static member can simultaneously invoked 2 threads without encountering race conditions, deadlocks, or crashes.

no, doesn't static classes thread safe, says public static members thread safe.

for static methods example, means use data send in parameters, or other static members thread safe.

you don't have synchronise calls static methods, unless it's needed protect data send method.


Comments