What is the difference between Coroutine, Coroutine2 and Fiber?

There are 3 subtle threads with manual context switching with low latency in Boost:

What is the difference between Coroutine1, Coroutine2 and Fiber in Boost?

+4
source share
1 answer

boost.coroutine ++ 11 API boost.context( , ).

boost.coroutine2 boost.fiber ++ 11 callcc()/ ( , with-current-continue) boost.context.

boost.coroutine boost.coroutine2 , boost.fiber (== lightweigt, coroperative userland-threads, green-threads,...) API, std:: thread.

N4024: - : , .

+10

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


All Articles