Wednesday, March 28, 2012

Difference between Asynchronous calls and Callback calls

Can any1 tell me Difference Asynchronous calls and Callbacks

With reagrds,

Mahender

Hi Mahender,

Usually, asynchronous call is referred as invoking a method on another thread without blocking current working thread. You'll see it being used in calling WebService, I/O operations, etc. In AJAX, it's usually implemented with request for a resource via XmlHttpRequest, it's the essential of AJAX.

Callback is executable code that is passed as an argument to other code, or we can call itMethod Pointer. It enables the other code to call the executable code via the pointer.

Hope this helps.

No comments:

Post a Comment