软件包:libboost-fiber-dev(1.81.0.1~exp1) [debports]
试制(Experimental)软件包
警告:这个软件包来自于 experimental 发行版。这表示它很有可能表现出不稳定或者出现 bug ,甚至是导致资料损失。请务必在使用之前查阅 changelog 以及其他潜在的文档。
cooperatively-scheduled micro-/userland-threads (default version)
This package forms part of the Boost C++ Libraries collection.
Boost.Fiber provides a framework for micro-/userland-threads (fibers) scheduled cooperatively. The API contains classes and functions to manage and synchronize fibers similarly to standard thread support library.
Each fiber has its own stack.
A fiber can save the current execution state, including all registers and CPU flags, the instruction pointer, and the stack pointer and later restore this state. The idea is to have multiple execution paths running on a single thread using cooperative scheduling (versus threads, which are preemptively scheduled). The running fiber decides explicitly when it should yield to allow another fiber to run (context switching). Boost.Fiber internally uses execution_context from Boost.Context; the classes in this library manage, schedule and, when needed, synchronize those execution contexts. A context switch between threads usually costs thousands of CPU cycles on x86, compared to a fiber switch with less than a hundred cycles. A fiber runs on a single thread at any point in time.
This package is a dependency package, which depends on Debian's default Boost version (currently 1.81).
其他与 libboost-fiber-dev 有关的软件包
|
|
|
|
-
- dep: libboost-fiber1.81-dev
- cooperatively-scheduled micro-/userland-threads