Asynchronous programming in Rust: learn asynchronous programming by building working examples of futures, green threads, and runtimes

Cover -- Title Page -- Copyright -- Dedication -- Contributors -- Table of Contents -- Preface -- Part 1: Asynchronous Programming Fundamentals -- Chapter 1: Concurrency and Asynchronous Programming: a Detailed Overview -- Technical requirements -- An evolutionary journey of multitasking -- Non-pree...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
1. Verfasser: Samson, Carl Fredrik (VerfasserIn)
Format: Elektronisch E-Book
Sprache:English
Veröffentlicht: Birmingham Packt 2024
Schlagworte:
Online-Zugang:DE-573
DE-706
Volltext
Zusammenfassung:Cover -- Title Page -- Copyright -- Dedication -- Contributors -- Table of Contents -- Preface -- Part 1: Asynchronous Programming Fundamentals -- Chapter 1: Concurrency and Asynchronous Programming: a Detailed Overview -- Technical requirements -- An evolutionary journey of multitasking -- Non-preemptive multitasking -- Preemptive multitasking -- Hyper-threading -- Multicore processors -- Do you really write synchronous code? -- Concurrency versus parallelism -- The mental model I use -- Let's draw some parallels to process economics -- Concurrency and its relation to I/O -- What about threads provided by the operating system? -- Choosing the right reference frame -- Asynchronous versus concurrent -- The role of the operating system -- Concurrency from the operating system's perspective -- Teaming up with the operating system -- Communicating with the operating system -- The CPU and the operating system -- Down the rabbit hole -- How does the CPU prevent us from accessing memory we're not supposed to access? -- But can't we just change the page table in the CPU? -- Interrupts, firmware, and I/O -- A simplified overview -- Interrupts -- Firmware -- Summary -- Chapter 2: How Programming Languages Model Asynchronous Program Flow -- Definitions -- Threads -- Threads provided by the operating system -- Creating new threads takes time -- Each thread has its own stack -- Context switching -- Scheduling -- The advantage of decoupling asynchronous operations from OS threads -- Example -- Fibers and green threads -- Each stack has a fixed space -- Context switching -- Scheduling -- FFI -- Callback based approaches -- Coroutines: promises and futures -- Coroutines and async/await -- Summary -- Chapter 3: Understanding OS-Backed Event Queues, System Calls, and Cross-Platform Abstractions -- Technical requirements -- Running the Linux examples.
Beschreibung:1 Online-Ressource (xix, 285 Seiten) Diagramme
ISBN:9781805126621

Es ist kein Print-Exemplar vorhanden.

Fernleihe Bestellen Achtung: Nicht im THWS-Bestand! Volltext öffnen