Explanation Coroutine vs Fiber difference

In the book, the Linux System Programming, 2nd Editiondifference between coroutines and fibers is explained as follows:

Coroutines and fibers provide a unit of execution that is even lighter in weight than a thread (with the first name, which is their name, when it is a construction of a programming language, and the second when it is a system construct).

I have an example of Coroutines (language constructs), but cannot find an example of Fibers.

Can someone provide me an example of Fiber (system design)?

+4
source share
1 answer

boost.coroutine2 boost.fiber ( ++) - (callcc()/) boost.context.

, , ( ...). Coroutines .

N4024: .

+6

Source: https://habr.com/ru/post/1673036/


All Articles