Welcome to MSDN Blogs Sign in | Join | Help

jaredpar's WebLog

Code, rants and ramblings of a programmer.

Syndication

News

Now Reading

Expert F#

What's a better book to read when learning F#?

Essential WPF

Thus far the best book I've read on WPF. Gets right down to working with WPF and the goals/history.

Purely Functional Data Structures

Reading this book makes me feel like I'm back in college. It will really get your mind going and is best read with a whiteboard handy.

Blog Roll

Eric Lippert
Dustin Campbell
Jon Skeet
Coding Horror
Brian McNamara
Hub FS
Full List

CLR Memory Model

Internally and externally I see a lot of questions about the .Net Memory Model.  I think a lot of the confusion comes from the specs.  Mainly that there are really two of them.

The first is the ECMA CLI Memory Model (Partition 1, Section 12).  This standard introduces a relaxed memory model which, IMHO, makes multi-threading program a bit difficult.  For instance it allows for write reordering which can be quite confusing to programmers (and result in very hard to track bugs).

The CLR 2.0 Memory Model is a stricter version of the EMCA model.  There are two excellent sources of information on the more strict version.

For anyone doing multi-threaded programming in .Net, both of these articles are a must read. 

Published Thursday, January 17, 2008 12:16 PM by Jared Parsons

Filed under: ,

Comments

# MSDN Blog Postings » CLR Memory Model @ Thursday, January 17, 2008 12:53 PM

PingBack from http://msdnrss.thecoderblogs.com/2008/01/17/clr-memory-model-3/

MSDN Blog Postings » CLR Memory Model

# Concurrency bugs in the CLR JIT @ Saturday, January 10, 2009 4:26 AM

A recent paper by Microsoft research has discovered a concurrency bug in the .Net JIT. They used the

C# Nuggets

New Comments to this post are disabled
Page view tracker