コード例 #1
0
 public static double PiCrunchParallel(int dummy)
 {
     Parallel.For(0, Environment.ProcessorCount, i => TestImplementations.PiDigits(100));
     return(0.0);
 }
コード例 #2
0
 public static double PiCrunch(int dummy)
 {
     return(0.0 + TestImplementations.PiDigits(100));
 }