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 is dynamic in c#?
What is use of private class in c#?
Can abstract class be sealed in c#?
What is an array of arrays called?
What is tuple in c#?
Are arraylist faster or arrays?
What is the difference between ref & out parameters in c#?
We cannot create instances of static classes. Can we have constructors for static classes?
How do I download a program to my desktop?
What is the difference between list and arraylist c#?
Define a jagged array in c#?
In a site to turn off cookies for one page which method is followed?
What is asynccallback c#?
What is difference between web and window application?
Can I use parseint?