What's the difference between QueueUserWorkItem() and BeginInvoke(), for performing an asynchronous activity with no return types needed

前端 未结 6 1960
甜味超标
甜味超标 2020-12-01 01:23

Following on from my BeginInvoke()/EndInvoke() question, are there major differences in performance/anything else between Delegate.BeginInvoke() and using QueueUserWorkItem(

6条回答
  •  独厮守ぢ
    2020-12-01 01:50

    There should not be any big difference, I also think that the generated BeginInvoke/EndInvoke for a delegate uses the thread pool to execute.

提交回复
热议问题