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

How many digits is a 32 bit number?

678


What is the difference between func and action delegate?

713


What is managed or unmanaged code?

858


What is a function c#?

739


Difference between value and reference type. What are value types and reference types?

742


What is iqueryable and ienumerable in c#?

724


Is friend a constructor?

688


What is this keyword in C#?

755


What do you mean by default constructor?

822


Is post back c#?

699


Give an example of a directcast.

698


If dll and exe files are same it means you can deploy both the files in gac?

706


How do I count the length of a string in c#?

713


What is Wrapper class in dot net?

835


How can I develop an application that automatically updates itself from the web?

684