What's the difference between Delegate.Invoke(),Delegate.BeginInvoke(),Control.Invoke(),Control.BeginInvoke()?

 Posted by Niladri.Biswas on 9/11/2012 | Category: C# Interview questions | Views: 2293 | Points: 40

Delegate.Invoke: Executes synchronously, on the same thread.

Delegate.BeginInvoke: Executes asynchronously, on a threadpool thread.

Control.Invoke: Executes on the UI thread, but calling thread waits for completion before continuing.

Control.BeginInvoke : Executes on the UI thread, and calling thread doesn't wait for completion.

Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response