Boost Your Program’s Health by Adding Fibers to your Coroutine
Play Boost Your Program’s Health by Adding Fibers to your Coroutine
This session is intended to help the advanced programmer to understand what coroutines and fibers are, what problems they solve and how they should be applied in practice. The session begins with an overview of these concepts, comparing them with threads, and demonstrating how they are exposed by the Boost libraries. Apart from being clean and succinct as Boost libraries typically are, the authors of these libraries have gone to great lengths to ensure that fibers and coroutines expose a programming model consistent with that of threads. This will make them seem very familiar. During the session I will demonstrate how fibers and coroutines can be used together with the powerful Boost.Asio library to solve some commonly occurring problems. To conclude, I will provide some practical tips and guidelines for those who are adding fibers and coroutines to their programming diet.