M
M
Mikhail2019-07-14 13:09:58
.NET
Mikhail, 2019-07-14 13:09:58

Why do you need asynchronous programming in C#?

Hello. Recently, in an interview, I was asked why asynchronous programming in C# is needed at all. I understand it more or less, but I blunted and did not answer the question. Moreover, even now I do not understand how to correctly and beautifully answer it. Can anyone help?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
Ivan Filatov, 2019-07-14
@makarychev13

Asynchrony is needed so that the main "process" of the program does not block the execution of instructions. And he transferred control to another independent thread / process until the previous one responds with success about the successful completion of the execution and the readiness to continue following the code / instructions.
Goals:
- speeding up the program
- execution without blocking effects (including in the user interface)
- multitasking + multithreading

V
Vayngarten, 2019-07-22
@Vayngarten

In these publications, in my opinion, it is well written about asynchrony in general
1. https://m.habr.com/ru/company/jugru/blog/446562/
2. https://ru.stackoverflow.com/questions/ 445768/%D0%...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question