c# - Are public events asynchronous? Do they execute on a separate thread? -


Is the public event asynchronous? Do they execute on a different thread?

The events that are triggered are triggered by the event.

This means, if the event has been raised by the GUI thread, the event handler is executed in the GUI thread for that event. If the event is extended by some background thread, event handlers are executed in that background thread. Whatever the threader handler is executing, that method is executed in a synchronous manner.

As an additional note, if you have an event handler, for the event that has been raised from the category that is working in the background, when that event is triggered The event handler will be called in the background thread. Which means, you will need to use control. Inuk or any other mechanism to pass data to a GUI thread, so that the form can be modified.


Comments

Popular posts from this blog

c++ - Linux and clipboard -

What is expire header and how to achive them in ASP.NET and PHP? -

sql server - How can I determine which of my SQL 2005 statistics are unused? -