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
What are the advantages of using c#?
What is delegates in c# and uses of delegates?
Why is lazy loading?
How many types of constructor are there in c#?
How do you serialize in c#?
Is c# good for beginners?
Can I define a type that is an alias of another type (like typedef in c++)?
Which is faster array or arraylist in c#?
What is the difference between string and stringbuilder in c#?
Explain the types of comments in c#?
Why do we use yield in c#?
What are the advantages of using delegates in c#?
Why should you override the tostring() method?
Is array a list?
What are the benefits of using the aggregate method in linq?