filmov
tv
Python Asynchronous Programming - 2 - Synchronous vs Asynchronous

Показать описание
Before we start coding lets understand the terms and differences between Synchronous vs Asynchronous Programming.
Synchronous
- In sequence. One after other. Thread is blocked.Speed of execution of code depends on your process. Has to wait for the funtion to end ( Example infinite while loop)
Asynchronous
- Doesn't has to wait for a part of code to be finished before executing another one.
Example
Human (thread) is waiting in line for movie tickets. For the sake of this example , he is unique human being who can only do 1 thing at a time. So while waiting in line for movie tickets. He can't do anything else. We can also say he has locked on to only getting movie tickets. He can't use intagram while getting movie tickets. Only after he has gotten the movie tickets he can start using instagram on his phone. This is an example of synchronous programming. Now this sounds a lil dumb he should be a ble to use instagram which waiting in line for the movie tickets. This in code is achived by asynchronous programming.
Next video - Async vs MutilThreading vs MultiProcessing
Synchronous
- In sequence. One after other. Thread is blocked.Speed of execution of code depends on your process. Has to wait for the funtion to end ( Example infinite while loop)
Asynchronous
- Doesn't has to wait for a part of code to be finished before executing another one.
Example
Human (thread) is waiting in line for movie tickets. For the sake of this example , he is unique human being who can only do 1 thing at a time. So while waiting in line for movie tickets. He can't do anything else. We can also say he has locked on to only getting movie tickets. He can't use intagram while getting movie tickets. Only after he has gotten the movie tickets he can start using instagram on his phone. This is an example of synchronous programming. Now this sounds a lil dumb he should be a ble to use instagram which waiting in line for the movie tickets. This in code is achived by asynchronous programming.
Next video - Async vs MutilThreading vs MultiProcessing
Python Asynchronous Programming - 2 - Synchronous vs Asynchronous
Python Asynchronous Programming - AsyncIO & Async/Await
Asyncio in Python - Full Tutorial
AsyncIO & Asynchronous Programming in Python
How to Make 2500 HTTP Requests in 2 Seconds with Async & Await
AsyncIO, await, and async - Concurrency in Python
Async for the Python 2 Programmer
asyncio in Python - Async/Await
How To Easily Do Asynchronous Programming With Asyncio In Python
How To Make ANY Function Asynchronous In Python 3.12
Next-Level Concurrent Programming In Python With Asyncio
Asynchronous Programming in Python Explained and Demonstrated
Senior Programmers vs Junior Developers #shorts
Python Async Programming - AsyncIO & Async/Await
Using Python asynchronously
Python Asyncio, Requests, Aiohttp | Make faster API Calls
Intro to async Python | Writing a Web Crawler
Python Asynchronous Programming - 3 vs MultiThreading vs MultiProcessing
Async Await try-catch hell
Python 3 - Episode 52 - Async code
Python Async | Asynchronous IO Introduction
Thread Pools in Python - Asynchronous Programming
How FastAPI Handles Requests Behind the Scenes
JavaScript Async Await 👨🏻💻 Tutorial in 1 Minute #shorts
Комментарии