예제 #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
        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);
        }