Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Modelos de concorrência em Python.
Search
Diego Garcia
October 17, 2016
Programming
190
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Modelos de concorrência em Python.
Lightning talk apresentada na Python Brasil 12
Diego Garcia
October 17, 2016
More Decks by Diego Garcia
See All by Diego Garcia
Um overview sobre GIT
drgarcia1986
0
52
Modelos de concorrência e paralelismo em Python
drgarcia1986
0
120
Programe para uma interface, não para uma implementação
drgarcia1986
0
200
Bot do Telegram
drgarcia1986
1
230
Boas práticas em REST APIs
drgarcia1986
1
1.4k
Conteinerizando aplicações Python
drgarcia1986
0
470
Testes de carga com Locust
drgarcia1986
1
460
Other Decks in Programming
See All in Programming
PHPプロジェクトの結合バランスを可視化する #php_night
kajitack
0
230
DroidKaigi 2026 「個人開発という実験場: Android エンジニアが手にする4つの自由」
slashnephy
0
220
thread_parallel_with_free-threaded_Python_and_NumPy.pdf
riku_sakamoto
0
150
Foundry Localでエージェント開発
seosoft
0
150
高専キャリア LT 発表内容
crysta1221
6
5.6k
Building an Out-of-Order CPU
latte72
1
720
Laravelのアプリケーションをどこにデプロイするか #ツナギメオフライン.9
akase244
0
120
AIと壁打ちしながら進めるコスト管理
fufuhu
2
2k
iOS開発×AI駆動開発 〜最近使って便利だったスキルの話〜
nogu66
0
140
PyO3 で既存 Python 評価器を Rust core 化する ー wasm-bindgen でブラウザにも配るための設計
kdash
1
560
AI に Inclusive UI を書かせよう — Design Rules Skill で Compose UI を作り直す
theoriatec2024
1
460
Oxlintはいいぞ(続)
yug1224
1
560
Featured
See All Featured
From π to Pie charts
rasagy
0
360
Thoughts on Productivity
jonyablonski
76
5.4k
Leveraging Curiosity to Care for An Aging Population
cassininazir
1
490
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
56
3.5k
Why Your Marketing Sucks and What You Can Do About It - Sophie Logan
marketingsoph
0
400
Test your architecture with Archunit
thirion
2
2.4k
State of Search Keynote: SEO is Dead Long Live SEO
ryanjones
0
260
The Limits of Empathy - UXLibs8
cassininazir
1
640
How to train your dragon (web standard)
notwaldorf
97
6.8k
Exploring anti-patterns in Rails
aemeredith
3
500
Measuring & Analyzing Core Web Vitals
bluesmoon
9
990
The Art of Programming - Codeland 2020
erikaheidi
57
14k
Transcript
Modelos de concorrência em Python. #pybr12
Quem sou eu?
• Desenvolvedor a ~8 anos. • Desenvolvedor web a ~5
anos. • Pythonista a ~3 anos. • Django, Tornado, Aiohttp, etc. • Vimmer (#vim <3). • Aspirante a Gopher (#Golang <3). • Backend developer at LuizaLabs. Diego Garcia
Threads Processos Async 3 modelos principais
Threads Prós • Shared State • Pouco overhead • Operações
de IO Contras • Race Conditions • CPU Bound • GIL • Difícil de testar
Processos Prós • Melhor uso do processador • CPU Bound
• No GIL Contras • No Shared State • Overhead • Pickle • Difícil de testar
Async Prós • Single Thread • Uso efetivo de CPU
• Fácil de testar Contras • Depende de EventLoop • Novos idiomas e paradigma • CPU Bound • GIL
Não seja bitolado! Use a ferramenta certa para o problema
certo.
Obrigado! Se tiverem perguntas me procurem :) Twitter: @drgarcia1986 |
Github: /drgarcia1986