Subj : [.NET] Memory Barriers To : comp.programming.threads From : Cool Guy Date : Wed Sep 14 2005 05:21 am In the following code, is it safe to access Test.o in ThreadJob, considering it's not volatile and no locking is involved in its access? I think I remember reading that it's okay to do this if the variable is only *written* to before the worker *reading* thread is created, but I'm not sure. ----- using System; using System.Threading; class EntryPoint { static void Main() { Test t = new Test(); t.DoSomething(); } } class Test { object o; public void DoSomething() { o = new Object(); new Thread(new ThreadStart(ThreadJob)).Start(); } void ThreadJob() { Console.WriteLine(o.ToString()); } } .