Memory Barrier Method
public: static void MemoryBarrier();
public static void MemoryBarrier ();
static member MemoryBarrier : unit -> unit
Public Shared Sub MemoryBarrier ()
MemoryBarrier is required only on multiprocessor systems that have weak memory ordering (for example, a system that employs multiple Intel Itanium processors).
For most purposes, the C#
lock statement, the Visual Basic
SyncLock statement, or the Monitor class provide easier ways to synchronize data.