示例#1
0
        public static int Main(System.String[] Args)
        {
            Console.Out.WriteLine("Test should return with ExitCode 100 ...");
            // console sync 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;
            }

            int[]      count = { 300, 1000, -350, 0, 71, 200 };
            TreeThread Mv_TreeThread;

            for (int i = 0; i < iNofThread; i++)
            {
                Mv_TreeThread = new TreeThread(i, TreeType.Growing, count);              //Each treethread object launches a thread
            }
            return(100);
        }
示例#2
0
        public static int Main(System.String[] Args)
        {
            int iNofThread = 0;

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

            int[]      count = { 300, 1000, -350, 0, 71, 200 };
            TreeThread Mv_TreeThread;

            for (int i = 0; i < iNofThread; i++)
            {
                Mv_TreeThread = new TreeThread(i, TreeType.Growing, count);              //Each treethread object launches a thread
            }
            return(100);
        }
示例#3
0
        public static int Main (System.String[] Args)
        {
            Console.Out.WriteLine("Test should return with ExitCode 100 ...");
            // console sync 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;
            }

            int[] count = {300, 1000, -350, 0, 71, 200};
            TreeThread Mv_TreeThread;
            for (int i = 0; i < iNofThread; i++)
            {
                Mv_TreeThread = new TreeThread(i, TreeType.Growing, count);              //Each treethread object launches a thread
            }
            return 100;
        }
示例#4
0
        public static int Main (System.String[] Args)
        {

            Console.Out.WriteLine("Test should return with ExitCode 100 ...");
            // sync console output 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;
            }

            TreeThread Mv_LLTree;

            int[] count = {10000, -5000, 3000, -6000, 0, 15000, 0, 10000,0,100,100};
            for (int i = 0; i < iNofThread; i++)
            {
                Mv_LLTree = new TreeThread(i, TreeType.Normal, count);
            }
            return 100;
        }
示例#5
0
        public static int Main(System.String[] Args)
        {
            Console.Out.WriteLine("Test should return with ExitCode 100 ...");
            // sync console output 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;
            }

            TreeThread Mv_LLTree;

            int[] count = { 10000, -5000, 3000, -6000, 0, 15000, 0, 10000, 0, 100, 100 };
            for (int i = 0; i < iNofThread; i++)
            {
                Mv_LLTree = new TreeThread(i, TreeType.Normal, count);
            }
            return(100);
        }
示例#6
0
        public static int Main (System.String[] Args)
        {

            int iNofThread = 0;

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

            int[] count = {300, 1000, -350, 0, 71, 200};
            TreeThread Mv_TreeThread;
            for (int i = 0; i < iNofThread; i++)
            {
                Mv_TreeThread = new TreeThread(i, TreeType.Growing, count);              //Each treethread object launches a thread
            }
            return 100;
        }