O'Reilly logo

C# 2008 and 2005 Threaded Programming: Beginner's Guide by Gastón C. Hillar

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Asynchronous execution

Calling the BackgroundWorker RunWorkerAsync() method, the advantages of threading begins running the code programmed in the DoWork event handler in a new independent thread. This mechanism is known as asynchronous execution.

When an asynchronous method is called, it runs in an independent way, and the program flow goes on with the instruction after to the method call even though its code has not finished its execution. The code in the asynchronous method runs concurrently with the main program flow.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required