コード例 #1
0
ファイル: thdlist.cs プロジェクト: CheneyWu/coreclr
        public static int Main (System.String[] Args)
        {

            Console.Out.WriteLine("Test should return with ExitCode 100 ...");
            // console synchronization Console.SetOut(TextWriter.Synchronized(Console.Out));

            int iNofThread = 0;

            if (Args.Length == 1)
            {
                if (!Int32.TryParse( Args[0], out iNofThread ))
                {
                    iNofThread = 2;
                }
            }
            else
            {
                iNofThread = 2;
            }


            LLThread Mv_LLThread;

            //Creates m_iNofThreads LLThread objects
            //Each LLThread then launches a thread in its constructor
            for (int i = 0; i < iNofThread; i++)
            {
                Mv_LLThread = new LLThread(i);
            }
            return 100;
        }
コード例 #2
0
ファイル: thdlist.cs プロジェクト: layomia/dotnet_runtime
        public static int Main(System.String[] Args)
        {
            Console.Out.WriteLine("Test should return with ExitCode 100 ...");
            // console synchronization Console.SetOut(TextWriter.Synchronized(Console.Out));

            int iNofThread = 0;

            if (Args.Length == 1)
            {
                if (!Int32.TryParse(Args[0], out iNofThread))
                {
                    iNofThread = 2;
                }
            }
            else
            {
                iNofThread = 2;
            }


            LLThread Mv_LLThread;

            //Creates m_iNofThreads LLThread objects
            //Each LLThread then launches a thread in its constructor
            for (int i = 0; i < iNofThread; i++)
            {
                Mv_LLThread = new LLThread(i);
            }
            return(100);
        }