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
Thinktecture Webinar async/await in .NET
Search
Sebastian Gingter
August 31, 2021
Programming
0
650
Thinktecture Webinar async/await in .NET
Slides for my webinar about async/await in .NET.
Sebastian Gingter
August 31, 2021
Tweet
Share
More Decks by Sebastian Gingter
See All by Sebastian Gingter
SEACON 2024 - Talk to your Data
phoenixhawk
0
28
MLCon 2024 - Bootcamp: Conquer and Rule Generative AI
phoenixhawk
0
46
InfoDays Generative AI für Developer 2024
phoenixhawk
0
26
EKON 2024 - Prompt Injections, Halluzinationen und Co.
phoenixhawk
0
9
EKON 2024: Real World RAG mit eigenen Daten und Dokumenten
phoenixhawk
0
44
Gen AI Engineering Days - Prompt Injections, Hallucinations and More
phoenixhawk
0
45
Gen AI Engineering Days - Talk to your Data
phoenixhawk
0
39
"Talk to your data": Improving RAG solutions based on real-world experiences
phoenixhawk
0
24
cim Lingen 2024 - Wieso versteht mich der Computer auf einmal? - Wir lüften das Geheimnis von Embeddings
phoenixhawk
0
41
Other Decks in Programming
See All in Programming
数十万行のプロジェクトを Scala 2から3に完全移行した
xuwei_k
0
350
競技プログラミングへのお誘い@阪大BOOSTセミナー
kotamanegi
0
360
testcontainers のススメ
sgash708
1
130
Fibonacci Function Gallery - Part 1
philipschwarz
PRO
0
230
Androidアプリのモジュール分割における:x:commonを考える
okuzawats
1
190
今年のアップデートで振り返るCDKセキュリティのシフトレフト/2024-cdk-security-shift-left
tomoki10
0
230
선언형 UI에서의 상태관리
l2hyunwoo
0
200
フロントエンドのディレクトリ構成どうしてる? Feature-Sliced Design 導入体験談
osakatechlab
8
4.1k
各クラウドサービスにおける.NETの対応と見解
ymd65536
0
180
責務を分離するための例外設計 - PHPカンファレンス 2024
kajitack
8
1.9k
return文におけるstd::moveについて
onihusube
1
1.3k
週次リリースを実現するための グローバルアプリ開発
tera_ny
1
110
Featured
See All Featured
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
226
22k
Making the Leap to Tech Lead
cromwellryan
133
9k
The Straight Up "How To Draw Better" Workshop
denniskardys
232
140k
Producing Creativity
orderedlist
PRO
342
39k
A better future with KSS
kneath
238
17k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
32
2.7k
Automating Front-end Workflow
addyosmani
1366
200k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
127
18k
Build your cross-platform service in a week with App Engine
jlugia
229
18k
Facilitating Awesome Meetings
lara
50
6.1k
Adopting Sorbet at Scale
ufuk
73
9.1k
Typedesign – Prime Four
hannesfritz
40
2.4k
Transcript
None
2 Deep-dive in async/await bei Backend-APIs ▪ ▪ ▪ ▪
▪ ▪ ▪ ▪ ▪ Twitter:
3 ▪ ▪ ▪ (Theorie 😨) ▪ ▪ ▪ Deep-dive
in async/await bei Backend-APIs
12 Deep-dive in async/await bei Backend-APIs • • • •
• • •
13 Deep-dive in async/await bei Backend-APIs
14 Deep-dive in async/await bei Backend-APIs Task Task-Liste Threadpool T1
Threadpool T2 Kern 1 Kern 3 Kern 2 Kern 4 Threadpool T3 Threadpool T4 Threadpool Management Jeder Pool-Thread arbeitet Tasks in einer Endlosschleife ab Completed Tasks
15 • • • • • 🤯 Deep-dive in async/await
bei Backend-APIs
16 Deep-dive in async/await bei Backend-APIs
17 ▪ ▪ ▪ ▪ ▪ ▪ ⏳ ▪ ▪
▪ Deep-dive in async/await bei Backend-APIs ReadFile API: https://docs.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-readfile
18 ▪ ▪ ▪ ▪ ▪ ▪ ⏳ ▪ Deep-dive
in async/await bei Backend-APIs ReadFile API: https://docs.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-readfile
19 Deep-dive in async/await bei Backend-APIs
20 • • async Task<> MyMethodAsync() • • • await
OtherMethodAsync() • • await • • • • Deep-dive in async/await bei Backend-APIs
21 Deep-dive in async/await bei Backend-APIs
22 Deep-dive in async/await bei Backend-APIs
23 • • task.GetAwaiter().GetResult() → ❌ • Thread.Sleep() → ❌
• await Task.Delay() → ✔ • Thread.SpinWait() • → ❌ • → ✔ Deep-dive in async/await bei Backend-APIs
24 • • var task1 = DoSomethingAsync(); var task2 =
DoSomethingElseAsync(); await Task.WhenAll(task1, task2); • • • Task.Factory.StartNew(…, TaskCreationOptions.LongRunning); • • • Deep-dive in async/await bei Backend-APIs
25 • • • • Deep-dive in async/await bei Backend-APIs
26 Deep-dive in async/await bei Backend-APIs
27 ▪ ▪ ▪ ▪ ▪ ▪ Deep-dive in async/await
bei Backend-APIs
28 ▪ ▪ ▪ ▪ ▪ 😉 Deep-dive in async/await
bei Backend-APIs
None