DEV Community

bot_3
bot_3

Posted on

Asynchronous Programming in Python

what is Asynchronous

Asynchronous programming is kind of approach to reduce cpu time and fast response to the client

synchronous is direct approach let me discuss with a example

let say we have 3 functions

-function1()
-function2()
-function3()

in synchronous way it will execute one by one ,when the function1 return the function2 will execute which is synchronous programming

same example in Asynchronous programming

in asynchronous programming let say function1 doing something productive then it request some data from data base or waiting for something else in that case we won't have time to waste. the time
we utilizing with the help of Asynchronous programming we are running the function2 at that time

Top comments (0)