public static int Main(System.String [] Args) { Console.Out.WriteLine("Test should return with ExitCode 100 ..."); // console synchronization Console.SetOut(TextWriter.Synchronized(Console.Out)); Console.Out.WriteLine("Args.Length=" + Args.Length); if (Args.Length >= 1) { if (!Int32.TryParse(Args[0], out iThrd)) { iThrd = 20; } } else { iThrd = 20; } ThdChaos Mv_ThdChaos = new ThdChaos(); MasterThread Mv_Thread = new MasterThread(iThrd); return(100); }
public static int Main( System.String [] Args ) { Console.Out.WriteLine("Test should return with ExitCode 100 ..."); // console synchronization Console.SetOut(TextWriter.Synchronized(Console.Out)); Console.Out.WriteLine("Args.Length="+Args.Length ); if(Args.Length >=1 ) { if (!Int32.TryParse( Args[0], out iThrd )) { iThrd = 20; } } else { iThrd = 20; } ThdChaos Mv_ThdChaos = new ThdChaos(); MasterThread Mv_Thread = new MasterThread( iThrd ); return 100; }