Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Thread and ThreadStart

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 = new Thread(new ThreadStart(aMethod));

Thanks.

like image 726
Azodious Avatar asked Sep 10 '25 20:09

Azodious


1 Answers

There is no difference. Both lines are equal.

like image 50
gor Avatar answered Sep 12 '25 10:09

gor



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!