Asynchronous and multithreaded

I read this Asynchronous vs Multithreading question - there is a difference and google search for the differences.

What is the advantage of using asynchronous rather than multithreaded? and when using Asynchronous instead of multithreading?

+5
source share
1 answer

If your task can be accomplished using asynchronous programming, it is best to do it this way, instead of switching to multi-threaded programming. for three reasons: -

1: perfomance

CPU w/e . , (, , , , , w/e, ), CPU . , , .

2:

, , , . , , JS, . , - .

3:

Python , GIL (Global Interpreter Lock). , Python . , , .

# , . 2 ...


, , . () , concurrency, acynhrounousity - , OOP (- ).

+4

All Articles