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
640
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
Generative AI: Semantische Suche und LLMs jenseits des Hello World-RAG-Tutorials
phoenixhawk
0
17
Webinar: Moderne Semantische Suche mit LLMs, Vektor-Datenbanken und LangChain
phoenixhawk
0
150
BASTA 2023 Blazor Statemanagement
phoenixhawk
0
29
.NET 7 Web-APIs mit Turbo: Deep-Dive in async/await
phoenixhawk
0
220
Turbopower - Ein Blick unter die Haube der .NET 7 Performance-Optimierungen
phoenixhawk
0
87
BASTA! Spring 2023 - .NET 7 Performanceoptimierungen unter der Lupe
phoenixhawk
0
67
Webinar: Blazor Webassembly - State Management in der Praxis
phoenixhawk
0
600
BASTA! Spring 2022 - Web-APIs mit Async & Await
phoenixhawk
0
990
Thinktecture Webinar: Web-API mit Turbo:Deep-dive in async/awaitfür Backend-APIs
phoenixhawk
0
820
Other Decks in Programming
See All in Programming
PHPerライフをChrome拡張開発でちょっと便利に / PR TIMES x DMM.com
meihei3
0
190
Reckoner の Scala プロジェクトにおける オブザーバビリティの取り組み / Observability Initiatives in Reckoner's Scala Project
nomadblacky
0
820
Не учите алгоритмы
hellsquirrel
1
700
PHPアプリケーションのスケーラビリティと 信頼性を革新する nginx+ngx_mrubyとGoの融合
pyama86
2
220
CSC308B Lecture 12
javiergs
PRO
0
110
品質が高いコードって何?Rev2.1
ickx
1
390
人口ダッシュボード作成講座資料
jo76shin
0
170
phpunit/php-code-coverageって何をしてるんだ #phperkaigi
o0h
PRO
2
190
Vue 3.4
kazupon
13
3.6k
まっちすいっち戦争 / match vs switch
takuyakatsusa
1
630
PHP8の機能を使って堅牢にコードを書く
fendo181
6
2k
【KMC春合宿2024】実装視点で見るNeural Radiance Fields
runningoutrate
0
130
Featured
See All Featured
Debugging Ruby Performance
tmm1
68
11k
Fashionably flexible responsive web design (full day workshop)
malarkey
397
65k
Building Better People: How to give real-time feedback that sticks.
wjessup
350
18k
Side Projects
sachag
451
41k
Java REST API Framework Comparison - PWX 2021
mraible
PRO
18
6.8k
Reflections from 52 weeks, 52 projects
jeffersonlam
343
19k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
8
8.2k
Bash Introduction
62gerente
604
210k
Designing with Data
zakiwarfel
94
4.8k
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
153
14k
KATA
mclloyd
14
11k
What’s in a name? Adding method to the madness
productmarketing
PRO
14
2.5k
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