コード例 #1
0
        //also static fields are shared between threads
        public static void Execute()
        {
            SharringDataTest tt = new SharringDataTest();   // Create a common instance
            new Thread(tt.Go).Start();
            tt.Go();

            Console.ReadKey();
        }
コード例 #2
0
        //also static fields are shared between threads

        public static void Execute()
        {
            SharringDataTest tt = new SharringDataTest();   // Create a common instance

            new Thread(tt.Go).Start();
            tt.Go();

            Console.ReadKey();
        }