1、实现

        static void Main(string[] args)
        {
            Thread thread = new Thread(PrintNumbers);
            thread.Start();
            PrintNumbers();
            Console.Read();
        }

        static void PrintNumbers()
        {
            Console.WriteLine("starting");
            for (var i = 0; i < 100; i++)
            {
                Console.WriteLine(i);
            }
        }
View Code

相关文章:

  • 2021-10-17
  • 2021-06-09
  • 2021-10-12
  • 2022-01-04
  • 2022-12-23
  • 2022-12-23
  • 2021-08-04
  • 2021-06-20
猜你喜欢
  • 2021-05-18
  • 2021-06-13
  • 2022-01-04
相关资源
相似解决方案