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
Define a manifest in .net?
What is use of hashtable in c#?
How do you serialize in c#?
Why are strings in c# immutable?
What is an interface class in c#?
Explain the difference between a sub and a function in c#.
What is threading in c# with example?
Why do we write system in c#?
What is a singleton unity?
What is the use of delegate?
What is parameter c#?
How many root nodes are there in an xml document?
What is hashset c#?
If casting fails what type of exception is thrown?
How main method is called in c#?