Lecture Notes for Concurrent Programming

5 August 2003 - .NET Memory Consistency


Outline


What is .NET?


The .NET Memory Model


Our Ol' Pal


Sequential Consistency


Sequential Consistency Problems


Replacing Sequential Consistency


Release Consistency


How Release Consistency Works


.NET Release Consistency


Gates and Fences


Locks


Sequential Consistency and Volatile Memory


Lazy Initialization


The Double-Check Idiom


Checking the Double Check


Atomic Operations


Points to Remember


This page last modified on 5 August 2003.