explain synchronous and asynchronous in C#

Answers were Sorted based on User's Feedback



explain synchronous and asynchronous in C#..

Answer / sharad yadav

Usually the methods are synchronous. That means that you
call them, they gets executed. And when they finish you get
the control back.

The asynchronous methods are different. You call them. They
start executing, but return the control over the execution
back to the thread which called them while they continue to
execute in different thread.

Is This Answer Correct ?    52 Yes 8 No

explain synchronous and asynchronous in C#..

Answer / s sharma

Synchronous is one after another, so you send one email
when that process is done it sends the

next one. Asynchronous starts sending an email and it
doesn't care if the first one is done and will

start the second, and this goes on until all emails are
sent. Normally, an asynchronous process

would open a new thread and run in the background.

Is This Answer Correct ?    37 Yes 3 No

explain synchronous and asynchronous in C#..

Answer / 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

More C Sharp Interview Questions

What are the different types of delegation?

0 Answers  


What is an interface class? Give one example of it

0 Answers  


How do I simulate optional parameters to com calls?

0 Answers  


How to use session under class file of APP_Code folder?

0 Answers   ADITI,


What is asynccallback c#?

0 Answers  






What is inumerable?

0 Answers  


Explain about Protected and protected internal, ?internal? access-specifier?

7 Answers  


Hai I am Shiva from TN, SSE.I have an query problem. My Table : Door Field : ID,DoorID,ZoneID,Date,Time,Status. Problem was : Status.We got two values, one is 00 (OUTTIME) , Another is 01(INTIME) Like this Status --------- 00 01 00 01 00 01 00 01 How to Set as Status 00 and 01 , of separate column , Status as Intime,Status as Outtime Like this ----------- InTime OutTime ---------- ----------- 01 00 01 00 01 00 01 00 01 00 01 00 Regards KS kumar

1 Answers  


What is the difference between list and dictionary in c#?

0 Answers  


When Should You Call The Garbage Collector In .net?

0 Answers   Siebel Systems,


What is data quality assurance?

0 Answers  


What is the use of 'using' statement in c#?

0 Answers  


Categories