Thread and ThreadStart

后端 未结 4 1746
名媛妹妹
名媛妹妹 2020-12-30 22:23

Both of the following lines work same. but is there any hidden difference? and which one should be preferred?

Thread t1 = new Thread(aMethod);

Thread t2 = n         


        
4条回答
  •  猫巷女王i
    2020-12-30 23:12

    A ThreadStart represents the method that executes on a Thread, so this is exactly the same thing.

提交回复
热议问题