I wrote this little program:
class Program { static void Main(string[] args) { Thread t = new Thread(WriteX); t.Start(); for (in
Your code is non deterministic. Your code contains no thread primitives that would schedule priority of one thread over another or for one thread to wait for another.