e01.org

Fiber (computer science)

In computer science, a fiber is a particularly lightweight thread of execution. Like threads, fibers share address space. However, fibers use cooperative multitasking while threads use preemptive multitasking. Threads often depend on the kernel's thread scheduler to preempt a busy thread and resume another thread; fibers yield themselves to run another fiber while executing. Source: e01 Encyclopedia. Licence: CC BY-SA 4.0.

In computer science, a fiber is a particularly lightweight thread of execution. Like threads, fibers share address space. However, fibers use cooperative multitasking while threads use preemptive multitasking. Threads often depend on the kernel's thread scheduler to preempt a busy thread and resume another thread; fibers yield themselves to run another fiber while executing. ==Fiber implementation examples== Fibers can be implemented without operating system support, although some operating systems or libraries provide explicit support for them. Win32 supplies a fiber API (Windows NT 3.51 SP3 and later) Boost (C++) has a boost::fibers::fiber class since Boost version 1.62 D has a class core.thread.fiber.Fiber in its standard library. Ruby had Green threads (before version 1.9) Netscape Portable Runtime (includes a user-space fibers implementation) ribs2 PHP since version 8.1 Rust fibers that use Futures under the hood Crystal provides fibers as a part of the language and standard library

source: e01 Encyclopedia · licence: CC BY-SA 4.0 · page · source revision

Cite this

"Fiber (computer science)". 1775418403. e01 Encyclopedia. CC BY-SA 4.0. https://en.wikipedia.org/w/index.php?oldid=1347296178

JSON record · API collection · BibTeX · RIS · CSL-JSON · citation policy

Save to pass ·