Structured Concurrency: Writing Safer Concurrent Code with Coroutines... - Lewis Baker - CppCon 2019

Published: 14 October 2019
on channel: CppCon
23,044
402

Structured Concurrency: Writing Safer Concurrent Code with Coroutines and Algorithms

http://CppCon.org

Discussion & Comments:   / cpp  

Presentation Slides, PDFs, Source Code and other presenter materials are available at: https://github.com/CppCon/CppCon2019

Traditional approaches to concurrency and asynchronous programming, such as futures or threads, can be difficult to use safely, particularly in the presence of exceptions. These abstractions often implicitly introduce concurrency to your program in an unstructured way making it difficult to reason about your code.

The principle of “structured concurrency” aims to do for concurrent/async programming what constructs like if/while/for did for control-flow and what destructors and RAII did for object lifetimes - provide a structured way to think about concurrency in your programs by encapsulating common concurrency patterns into reusable algorithms.

This talk covers using the principles of “structured concurrency” in conjunction with coroutines to make it easier to write concurrent programs that are safer and more efficient than traditional approaches.

Lewis Baker
Software Engineer, Facebook

Videos Filmed & Edited by Bash Films: http://www.BashFilms.com

*-----*
Register Now For CppCon 2022: https://cppcon.org/registration/
*-----*


Watch video Structured Concurrency: Writing Safer Concurrent Code with Coroutines... - Lewis Baker - CppCon 2019 online, duration hours minute second in high quality that is uploaded to the channel CppCon 14 October 2019. Share the link to the video on social media so that your subscribers and friends will also watch this video. This video clip has been viewed 23,044 times and liked it 402 visitors.