Slide 1

Slide 1 text

🐻

Slide 2

Slide 2 text

3 ▪ 🐻💬 ▪ ▪ ▪ ▪ ▪ ▪ ▪ ▪ Twitter: Wobei hilft‘s und wie funktioniert‘s?

Slide 3

Slide 3 text

Special Day “Modern Business Applications” Thema Sprecher Datum, Uhrzeit Web-APIs mit async/await: Wobei hilft’s und wie funktioniert’s? Sebastian Gingter DI, 22. Februar 2022, 10.45 bis 11.45 Web Components in modernen Web-Apps: Hype oder Heilsbringer? Peter Kröner DI, 22. Februar 2022, 12.15 bis 13.15 Produktivitäts-PWAs mit Angular auf Desktopniveau Christian Liebel DI, 22. Februar 2022, 14.30 bis 15.30 Blazor WebAssembly in der Praxis: 5 Dinge, die Sie kennen sollten Christian Weyer DI, 22. Februar 2022, 16.00 bis 17.00 Serverless Kubernetes mit Azure Container Apps Thorsten Hans DI, 22. Februar 2022, 18.00 bis 19.00

Slide 4

Slide 4 text

5 ▪ ▪ ▪ ▪ ▪ Wobei hilft‘s und wie funktioniert‘s?

Slide 5

Slide 5 text

6 ▪ ▪ ▪ ▪ ▪ ▪ Wobei hilft‘s und wie funktioniert‘s?

Slide 6

Slide 6 text

7 Nein, aber (viel) effizienter! Wobei hilft‘s und wie funktioniert‘s?

Slide 7

Slide 7 text

8 Wobei hilft‘s und wie funktioniert‘s?

Slide 8

Slide 8 text

9 ▪ ▪ ▪ ▪ ▪ ▪ ▪ Wobei hilft‘s und wie funktioniert‘s?

Slide 9

Slide 9 text

11 • • • ▪ ▪ ▪ ▪ ▪ * Zahlen für Windows, Quelle: “Windows Internals“, Solomin, Russinovich et al. Jeffrey Richter sagt hingegen: 30 ms in Windows, Linux hat andere Zeiten… Wobei hilft‘s und wie funktioniert‘s?

Slide 10

Slide 10 text

12 • • • • • • • • • • Wobei hilft‘s und wie funktioniert‘s?

Slide 11

Slide 11 text

13 Kern 1 Kern 2 Kern 3 Kern 4 P2 T1 P2 T2 P3 T1 P1 T1 P3 T2 P1 T2 Kontext- Wechsel Kontext- & Prozess- Wechsel Wobei hilft‘s und wie funktioniert‘s?

Slide 12

Slide 12 text

14 • • • • • • • • • Wobei hilft‘s und wie funktioniert‘s?

Slide 13

Slide 13 text

15 ALU & FPU Registers 0 Registers 1 CPU Core with Hyper-Threading Classic CPU Core Wobei hilft‘s und wie funktioniert‘s?

Slide 14

Slide 14 text

16 Kern 1 Kern 2 Kern 3 Kern 4 P2 T1 P2 T2 MyProc T1 P1 T2 P1 T1 MyProc T2 MyProc T3 MyProc T4 MyProc T5 MyProc T7 MyProc T6 Wobei hilft‘s und wie funktioniert‘s?

Slide 15

Slide 15 text

17 • • • Quelle: “Systems Performance: Enterprise and the Cloud“, 2013, Brendan Gregg, Pearson Verlag Wobei hilft‘s und wie funktioniert‘s?

Slide 16

Slide 16 text

18 • • • • • • Wobei hilft‘s und wie funktioniert‘s?

Slide 17

Slide 17 text

19 Wobei hilft‘s und wie funktioniert‘s?

Slide 18

Slide 18 text

20 ▪ ▪ ▪ ▪ ▪ ▪ ⏳ ▪ ▪ ▪ ReadFile API: https://docs.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-readfile Wobei hilft‘s und wie funktioniert‘s?

Slide 19

Slide 19 text

21 ▪ ▪ ▪ ▪ ▪ ▪ ⏳ ▪ ReadFile API: https://docs.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-readfile Wobei hilft‘s und wie funktioniert‘s?

Slide 20

Slide 20 text

22 Wobei hilft‘s und wie funktioniert‘s?

Slide 21

Slide 21 text

23 • • IAsyncResult BeginSomething() • EndSomething(result) • • DoSomethingAsync() • event SomethingCompleted • • Task[] DoSomethingAsync() Wobei hilft‘s und wie funktioniert‘s?

Slide 22

Slide 22 text

24 Wobei hilft‘s und wie funktioniert‘s?

Slide 23

Slide 23 text

25 • • • • • • .ContinueWith() • Wobei hilft‘s und wie funktioniert‘s?

Slide 24

Slide 24 text

26 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 Wobei hilft‘s und wie funktioniert‘s?

Slide 25

Slide 25 text

27 • • • • • 🤯 • • Wobei hilft‘s und wie funktioniert‘s?

Slide 26

Slide 26 text

28 Wobei hilft‘s und wie funktioniert‘s?

Slide 27

Slide 27 text

29 • • async Task<> MyMethodAsync() • • • await OtherMethodAsync() • • await • • • • Wobei hilft‘s und wie funktioniert‘s?

Slide 28

Slide 28 text

30 Wobei hilft‘s und wie funktioniert‘s?

Slide 29

Slide 29 text

31 Wobei hilft‘s und wie funktioniert‘s?

Slide 30

Slide 30 text

32 • • task.GetAwaiter().GetResult() → ❌ • Thread.Sleep() → ❌ • await Task.Delay() → ✔ • Thread.SpinWait() • → ❌ • → ✔ Wobei hilft‘s und wie funktioniert‘s?

Slide 31

Slide 31 text

33 • • var task1 = DoSomethingAsync(); var task2 = DoSomethingElseAsync(); await Task.WhenAll(task1, task2); • • • Task.Factory.StartNew(…, TaskCreationOptions.LongRunning); • • • Wobei hilft‘s und wie funktioniert‘s?

Slide 32

Slide 32 text

34 • • • • Wobei hilft‘s und wie funktioniert‘s?

Slide 33

Slide 33 text

35 Wobei hilft‘s und wie funktioniert‘s?

Slide 34

Slide 34 text

36 ▪ ▪ ▪ ▪ ▪ ▪ ▪ Wobei hilft‘s und wie funktioniert‘s?

Slide 35

Slide 35 text

37 ▪ ▪ ▪ ▪ ▪ 😉 P Wobei hilft‘s und wie funktioniert‘s?

Slide 36

Slide 36 text

No content