Wrox Programmer Forums
ASP.NET 1.0 and 1.1 Professional For advanced ASP.NET 1.x coders. Beginning-level questions will be redirected to other forums. NOT for "classic" ASP 3 or the newer ASP.NET 2.0 and 3.5
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old December 28th, 2006, 08:22 AM
Friend of Wrox
Join Date: Aug 2004
Posts: 550
Thanks: 0
Thanked 1 Time in 1 Post
Default synchronous and asynchronous methods


Can anyone explain the exact difference between synchronous and asynchronous methods with real examples, not theoretical ones, just consider me as a beginner.


Fortune favours the brave, so don't regret on missed oppurtunities.
Old December 28th, 2006, 10:52 AM
Wrox Author
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons

Since I am considering you a beginner ill give you some theory first! ;] Synchronous calls are calls that are executed completely and then they return control back to the executing thread where as an Async call is a method call where the executing thread calls the method, the method begins to execute but returns control to the calling thread immeadately so it can go and do other things while the Async method finishes up. Simple huh? ;]

MSDN Reference:

MSDN Blog/Application of AsyncCallback

A simple prog:

Implementing Async calls can become a pain and, to be honest, I have not run into a situation where I have needed to use an Async method over a Sync method. (I am talking server side code or in windows form programming, not AJAX since I love using that =] )

In anycase I encourage the rest of the forum to contribute to the thread and see what kind of discussion we can get going. =]

I will only tell you how to do it, not do it for you.
Unless, of course, you want to hire me to do work for you.

^^Thats my signature

Similar Threads
Thread Thread Starter Forum Replies Last Post
Asynchronous Transactions jroxit Other Programming Languages 0 July 29th, 2008 11:12 AM
Asynch parameter "true" but still synchronous! tal Ajax 2 August 20th, 2007 08:25 AM
Asynchronous call tapan General .NET 1 April 27th, 2007 08:12 AM
Asynchronous Functions in C# cloucas C# 2 July 25th, 2005 12:31 AM
2 synchronous combos in continuous forms Cr0vaX Access VBA 3 May 22nd, 2004 11:40 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.