Why does the main thread's output come first in C#?

前端 未结 7 2187
半阙折子戏
半阙折子戏 2021-02-04 23:41

I wrote this little program:

class Program
{
    static void Main(string[] args)
    {
        Thread t = new Thread(WriteX);
        t.Start();

        for (in         


        
相关标签:
7条回答
  • 2021-02-05 00:12

    Main process continue its next instructions set after invoking the thread ,It will take time to start thread method as light process.

    0 讨论(0)
提交回复
热议问题