Upgrade to PRO for Only $50/Year—Limited-Time Offer! 🔥
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
670
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
DDC 2025: p"AI"r Programming statt Vibe-Coding
phoenixhawk
0
24
EKON 2025 - Agents
phoenixhawk
0
42
EKON 2025 AI Coding
phoenixhawk
0
48
BASTA! 2025: Agents in Action: LLM's, Tools and Reasoning
phoenixhawk
0
41
From Zero to Hero: How to put GPT LLMs & Friends into your Applications
phoenixhawk
0
120
DWX 2025 - Talk to your data
phoenixhawk
0
28
BASTA! Spring 2025 - Halluzinationen, Prompt Injections & Co.
phoenixhawk
0
140
SEACON 2024 - Talk to your Data
phoenixhawk
0
160
MLCon 2024 - Bootcamp: Conquer and Rule Generative AI
phoenixhawk
0
190
Other Decks in Programming
See All in Programming
チームをチームにするEM
hitode909
0
330
ViewファーストなRailsアプリ開発のたのしさ
sugiwe
0
470
AIコーディングエージェント(skywork)
kondai24
0
180
connect-python: convenient protobuf RPC for Python
anuraaga
0
410
なあ兄弟、 余白の意味を考えてから UI実装してくれ!
ktcryomm
11
11k
TestingOsaka6_Ozono
o3
0
160
AWS CDKの推しポイントN選
akihisaikeda
1
240
Cap'n Webについて
yusukebe
0
130
関数実行の裏側では何が起きているのか?
minop1205
1
700
Socio-Technical Evolution: Growing an Architecture and Its Organization for Fast Flow
cer
PRO
0
340
非同期処理の迷宮を抜ける: 初学者がつまづく構造的な原因
pd1xx
1
720
エディターってAIで操作できるんだぜ
kis9a
0
730
Featured
See All Featured
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
PRO
196
70k
The Art of Programming - Codeland 2020
erikaheidi
56
14k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
36
6.2k
The Pragmatic Product Professional
lauravandoore
37
7.1k
Put a Button on it: Removing Barriers to Going Fast.
kastner
60
4.1k
Into the Great Unknown - MozCon
thekraken
40
2.2k
Testing 201, or: Great Expectations
jmmastey
46
7.8k
The World Runs on Bad Software
bkeepers
PRO
72
12k
GitHub's CSS Performance
jonrohan
1032
470k
Being A Developer After 40
akosma
91
590k
Statistics for Hackers
jakevdp
799
230k
The Invisible Side of Design
smashingmag
302
51k
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