July 2003
Intermediate to advanced
736 pages
16h 35m
English
Synchronous code executes in the order in which it occurs in the compiled program. Asynchronous code executes out of order. When an asynchronous call occurs, the call is made to the asynchronous invoke method and immediately returns. The flow of execution resumes while the asynchronous process finishes separately. You can write code to block until the asynchronous process finishes, or you can pass a callback method to the asynchronous process so it will notify you by invoking the callback when the data is ready.
The GcdDemo.sln file demonstrates code that determines the greatest common divisor of two numbers. The sample application calculates the greatest common divisor using recursion, demonstrating ...
Read now
Unlock full access