Virtual thread ============== In computer programming, a virtual thread is a thread that is managed by a runtime library or virtual machine (VM) and made to resemble a kernel thread to code executing on it, while requiring substantially fewer resources than the latter. Virtual threads allows for tens of millions of preemptive tasks and events on a 2021 consumer-grade computer, compared to low thousands of operating system threads. Preemptive execution is important to performance gains through parallelism and fast preemptive response times for tens of millions of events. Earlier constructs that are not or not always preemptive, such as coroutines, green threads or the largely single-threaded Node.js, introduce delays in responding to asynchronous events such as every incoming request in a server application. In computer programming, a virtual thread is a thread that is managed by a runtime library or virtual machine (VM) and made to resemble a kernel thread to code executing on it, while requiring substantially fewer resources than the latter. Virtual threads allows for tens of millions of preemptive tasks and events on a 2021 consumer-grade computer, compared to low thousands of operating system threads. Preemptive execution is important to performance gains through parallelism and fast preemptive response times for tens of millions of events. Earlier constructs that are not or not always preemptive, such as coroutines, green threads or the largely single-threaded Node.js, introduce delays in responding to asynchronous events such as every incoming request in a server application. REFERENCES ---------- BIBLIOGRAPHY (BibTeX) -------------------- @article{ref0, title = {Virtual thread}, url = {https://encyclopegia.org/a/virtual-thread} } BIBLIOGRAPHY (RIS) ------------------- TY - JOUR TI - Virtual thread UR - https://encyclopegia.org/a/virtual-thread ER - CITE THIS ARTICLE ---------------- Cite this article: Virtual thread Derived from: https://en.wikipedia.org/w/index.php?oldid=1348706803 Licence: CC BY-SA 4.0 Snapshot: enwiki-001348706803 Permalink: /a/virtual-thread