コード例 #1
0
ファイル: Program.cs プロジェクト: Hinz3/Parallel-Compulsory
        private static void RunParallelStuff(int start, int end)
        {
            Console.WriteLine("Sequential from {0} to {1}...", start, end);
            PrimeCalculator.MeassureTime(() => PrimeCalculator.GetPrimesSequential(start, end));

            Console.WriteLine("Parallel Partitioned from {0} to {1}...", start, end);
            PrimeCalculator.MeassureTime(() => PrimeCalculator.GetPrimesParallel(start, end));
        }