Fiber (computer science)
In computer science, a fiber is a particularly lightweight thread of execution.[src] Like threads, fibers share address space.[src] However, fibers use cooperative multitasking while threads use preemptive multitasking.[src] 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.[src]
In computer science, a fiber is a particularly lightweight thread of execution.[src] Like threads, fibers share address space.[src] However, fibers use cooperative multitasking while threads use preemptive multitasking.[src] 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.[src] ==Fiber implementation examples== Fibers can be implemented without operating system support, although some operating systems or libraries provide explicit support for them.[src] 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.[src] 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[src]
11 sentences · 11 cited inline · 0 references stored
References
No reference rows published for this article.
Cite this article
MLA
"Fiber (computer science)." encyclopegia.org, 2026, https://encyclopegia.org/wiki/fiber-computer-science. Accessed 29 November 2026.
Chicago
"Fiber (computer science)." encyclopegia.org. Accessed November 29, 2026. https://encyclopegia.org/wiki/fiber-computer-science.
APA
encyclopegia.org. (2026). Fiber (computer science). Retrieved November 29, 2026, from https://encyclopegia.org/wiki/fiber-computer-science
Accessed November 29, 2026 · CC BY-SA 4.0 · citation page · JSON