Exemple #1
0
        static void Main(string[] args)
        {

            intList = Enumerable.Range(0, N);
            int[] arr = new int[N];
            Console.WriteLine("Starting with {0} items", N);
            Stopwatch sw = new Stopwatch();
            sw.Start();

            AsyncWorker<int> worker = new AsyncWorker<int>(Method2, arr, TC);

            worker.Wait();
            sw.Stop();
            Console.WriteLine("Worker finished in {0}s", sw.Elapsed.TotalSeconds);
            Console.ReadLine();


        }