多核编程与并行计算
}
实验十:
using System;
using System.Threading;
class Test
{
} public static void WithDraw2() static int total = 100; public static void WithDraw1() { int n=90; if (n <= total) { } else { } Console.WriteLine("You do not enough money. n={0}", n); Console.WriteLine("total={0}", total); total -= n; Console.WriteLine("You have withdrawn. n={0}", n); Console.WriteLine("total={0}", total);