public TreeThread(int ThreadId, TreeType treeType, int[] count) { // attempt to synchronize the console output //Console.SetOut(TextWriter.Synchronized(Console.Out)); mA_Count = count; m_BinTree = new BinTree(ThreadId, treeType); m_id = ThreadId; Mv_Thread = new Thread( new ThreadStart(this.ThreadStart)); Mv_Thread.Start( ); Console.Out.WriteLine("Started Thread: " + m_id); }
public TreeThread(int ThreadId, TreeType treeType, int[] count) { mA_Count = count; m_BinTree = new BinTree(ThreadId, treeType); m_id = ThreadId; Mv_Thread = new Thread( new ThreadStart(this.ThreadStart)); Mv_Thread.Start( ); Console.Out.WriteLine("Started Thread: " + m_id); }