explain synchronous and asynchronous in C#

Answer Posted / swaroopkumar1069

In simplest words, synchronous functions block the calling function until they complete their task. For instance, Thread.Sleep, Console.WriteLine and Console.ReadLine, these function do not let the control to shift to the next lines until they perform their functionality. Asynchronous methods are those methods which return immediately to the caller function and continue executing their task in parallel with the caller function. They do not block the caller function and it is due to this reason that they are called non-blocking functions

Is This Answer Correct ?    13 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is dynamic in c#?

679


What is use of private class in c#?

766


Can abstract class be sealed in c#?

680


What is an array of arrays called?

657


What is tuple in c#?

725


Are arraylist faster or arrays?

749


What is the difference between ref & out parameters in c#?

680


We cannot create instances of static classes. Can we have constructors for static classes?

754


How do I download a program to my desktop?

675


What is the difference between list and arraylist c#?

741


Define a jagged array in c#?

689


In a site to turn off cookies for one page which method is followed?

749


What is asynccallback c#?

733


What is difference between web and window application?

641


Can I use parseint?

673