المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : .NET Delegates: Making Asynchronous Method Calls in the .NET Environment



C++ Programming
03-29-2009, 02:42 AM
One of the many great features of the .NET Framework is that it has asynchronous infrastructure built in. In .NET you can call any method asynchronously by defining a delegate for the method and calling the delegate's asynchronous methods. This is beneficial to your application because when a synchronous call is made, the calling thread is blocked until the method completes whereas an asynchronous call is made on a different thread, and this allows the original thread to continue its work while the asynchronous call is in progress.This article explains delegates in .NET and how to use them to perform asynchronous calls, eliminating age-old threading problems.

Richard Grimes

<a href="http://msdn.microsoft.com/magazine/ef8f0a96-462c-4f44-a9b0-4ca56de05ee5">MSDN Magazine August 2001