Ejemplo n.º 1
0
        public void Launch()
        {
            _threads = new List<Thread>();

            for (int i = 0; i < _maxThreads; i++)
            {
                ThreadWorker worker = new ThreadWorker();
                Thread thread = new Thread(worker.Run);
                thread.Name = string.Format("My Thread {0}", i);
                _threads.Add(thread);

                thread.Start();
            }
        }