Overview
Explore asynchronous I/O and coroutines for efficient data streaming in this NDC TechTown 2021 conference talk. Delve into the io_uring mechanism introduced in Linux kernel 5.1 for asynchronous network and disk operations, enhancing program responsiveness. Learn how C++20 coroutines offer a solution to "callback hell" by allowing function suspension and resumption within the same thread. Gain insights into combining io_uring and coroutines to create code that reads asynchronous data in multiple short loops, simulating parallel execution without threading concerns. Cover topics such as Uring IO, multithreaded IO, performance improvements, coroutine basics, promise types, coroutine filters, and potential undefined behavior. Acquire valuable resources to further your understanding of these advanced programming concepts.
Syllabus
Introduction
Uring IO
Multithreaded IO
Better performance
Coroutines
Coroutine returns
Promise type
Coroutine
Filter
Recap
Undefined behavior
Resources
Taught by
NDC Conferences