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
Can we override static class in c#?
What is multidimensional array in c#?
What is the .net datatype that allows the retrieval of data by a unique key?
Is array a collection c#?
What is difference between interface and abstraction?
Define acid rule of thumb for transactions in c#.
What are the methods in c#?
Could you explain the difference between func vs action vs predicate?
Define boxing and unboxing in c#?
Why do we use parameters in c#?
Are there functions in c#?
how to compare numbers and dispaly the largest ? *first thing I wanted to do is to input how many numbers to be compared *and then analyzed the largest then display it.
What are async and await?
How many digits are in an integer?
What is the use of console readline () in c#?