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
No reference rows published for this article.
Cite this article
MLA
"Virtual thread." encyclopegia.org, 2026, https://encyclopegia.org/wiki/virtual-thread. Accessed 24 November 2026.
Chicago
"Virtual thread." encyclopegia.org. Accessed November 24, 2026. https://encyclopegia.org/wiki/virtual-thread.
APA
encyclopegia.org. (2026). Virtual thread. Retrieved November 24, 2026, from https://encyclopegia.org/wiki/virtual-thread
Accessed November 24, 2026 · CC BY-SA 4.0 · citation page · JSON