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
How to declares a two-dimensional array in C#?
Can you put two constructor with the same structure in a class?
Which is faster hashtable or dictionary?
What is class sortedlist underneath?
What is razor view in c#?
Can a dictionary have duplicate keys c#?
Why do we overload constructors?
How do you declare a method in c#?
What is an escape sequence?
What is the difference between throw and throw ex?
Are constructors inherited c#?
What are the Configuration files in .net?
What are the different approaches of passing parameters to a method?
What is default value of enum c#?
Can you access a hidden base class method in the derived class?