netcore 俩个线程乱序调整
2021-09-19 17:13
阅读:791
标签:mamicode ref color task 线程 console inter syn for class Program { public static long flgVal = 0; static void Main(string[] args) { int n = 100; Task.Run(() => DaMi(n)); Task.Run(() => LaoShu(n)); Console.Read(); } public async static Task LaoShu(int n) { for (int i = 0; i
评论
亲,登录后才可以留言!