Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.0 and 1.1 Professional
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old December 28th, 2006, 08:22 AM
Friend of Wrox
Points: 1,935, Level: 17
Points: 1,935, Level: 17 Points: 1,935, Level: 17 Points: 1,935, Level: 17
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2004
Location: United Kingdom
Posts: 550
Thanks: 0
Thanked 1 Time in 1 Post
Default synchronous and asynchronous methods

Hi

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

Regards
Mike

Fortune favours the brave, so don't regret on missed oppurtunities.
__________________
Regards
Mike
  #2 (permalink)  
Old December 28th, 2006, 10:52 AM
Wrox Author
Points: 13,255, Level: 49
Points: 13,255, Level: 49 Points: 13,255, Level: 49 Points: 13,255, Level: 49
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2005
Location: Ohio, USA
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

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:
http://msdn.microsoft.com/msdnmag/issues/01/08/Async/

MSDN Blog/Application of AsyncCallback
http://blogs.msdn.com/dphill/articles/43260.aspx

A simple prog:
http://en.csharp-online.net/CSharp_D...s_method_calls

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
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 01:48 PM.


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