# virtual-threads

Published articles for virtual-threads.

This is one page of public article previews, not the complete archive. Follow Next page to continue. Summaries are not the original full articles.

## Towards Runtime-Aware Observability for Java Virtual Threads

DevFeed: [Towards Runtime-Aware Observability for Java Virtual Threads](<https://devfeed.tech/articles/towards-runtime-aware-observability-for-java-virtual-threads-131704.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2611.14999>)

Author: Wenjie Ding

Published: 2026-11-13T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Software Engineering](<https://devfeed.tech/sources/arxiv-software-engineering.md>)

Topics: [observability](<https://devfeed.tech/topics/observability.md>), [tracing](<https://devfeed.tech/topics/tracing.md>), [eBPF](<https://devfeed.tech/topics/ebpf.md>), [openjdk](<https://devfeed.tech/topics/openjdk.md>)

Tags: [cs-os](<https://devfeed.tech/tags/cs-os.md>), [cs-pf](<https://devfeed.tech/tags/cs-pf.md>), [cs-se](<https://devfeed.tech/tags/cs-se.md>), [java](<https://devfeed.tech/tags/java.md>), [observability](<https://devfeed.tech/tags/observability.md>), [runtime](<https://devfeed.tech/tags/runtime.md>), [virtual-threads](<https://devfeed.tech/tags/virtual-threads.md>)

### AI overview

Java virtual threads can break OS-level tracing that joins requests to kernel events by thread ID, because virtual threads move between carrier threads. The proposed design binds a 64-byte off-heap trace buffer at a stable address to each virtual thread and publishes it to eBPF through four USDT probes in patched OpenJDK. In tests, it attributed all 768 markers correctly; a naive two-probe design silently misattributed context. With no consumer attached, publication costs at most about 33 ns per transition, while buffer allocation costs about 0.37 μs per virtual thread--small on transition-heavy workloads but nearly doubling a creation-only microbenchmark. The compared JVMTI channel costs about 20% on transition-heavy workloads and 1.8 μs per virtual thread in the creation-only test. For readers that cache record addresses, the abstract finds only in-place updates guarded by the valid flag sound among the two OTEP 4947 strategies discussed.

### Source excerpt

arXiv:2611.14999v1 Announce Type: cross Abstract: OS-level observability tools join application requests to kernel events through the OS thread ID, assuming that a unit of work occupies one OS thread until it completes. Java virtual threads break this assumption: many virtual threads are multiplexed onto a few carrier threads, so a stable thread ID hides a changing unit of work, and the join fails silently. Existing virtual-thread-aware channels republish context or identity on every mount and unmount, and the JVMTI-based one pays this cost for the lifetime of the JVM, whether or not an observer is attached. We bind a 64-byte off-heap trace buffer to each virtual thread, at a fixed address for its lifetime, and publish the address to eBPF consumers through four USDT probes in a patched OpenJDK; a re-implemented JVMTI channel over the same buffer serves as a controlled comparison. The four-probe design attributed all 768 test markers correctly on both the content and the identity plane, while the naive two-probe design silently misattributes trace context. With no consumer attached, publication costs at most about 33 ns per transition; the remaining dormant cost is buffer allocation, about 0.37 microseconds per virtual thread, which is negligible on transition-heavy workloads but nearly doubles the cost of a creation-only microbenchmark. The JVMTI channel costs about 20% on transition-heavy workloads and about 1.8 microseconds per virtual thread on the creation-only one. We also show that, of the two update strategies OTEP 4947 permits, only in-place rewriting guarded by the record's valid flag is sound for readers that cache the record's address, as lifecycle-event readers do.

## Virtual threads changed the calculus for blocking I/O and not for CPU work

DevFeed: [Virtual threads changed the calculus for blocking I/O and not for CPU work](<https://devfeed.tech/articles/virtual-threads-changed-the-calculus-for-blocking-i-o-and-not-for-cpu-work-87574.md>)

Original publisher: [Read original article](<https://ankit-rana.com/logs/66-virtual-threads-blocking-io-not-cpu/>)

Author: hello@ankit-rana.com

Published: 2026-10-15T00:00:00Z

Content type: article

Language: en

Sources: [Ankit Rana | Mechanical Sympathy](<https://devfeed.tech/sources/ankit-rana-mechanical-sympathy.md>)

Topics: [Distributed Systems & Parallel Computing](<https://devfeed.tech/topics/distributed-systems-parallel-computing.md>), [threadpools](<https://devfeed.tech/topics/threadpools.md>), [Deadlock](<https://devfeed.tech/topics/deadlock.md>), [performance-optimization](<https://devfeed.tech/topics/performance-optimization.md>)

Tags: [backpressure](<https://devfeed.tech/tags/backpressure.md>), [concurrency](<https://devfeed.tech/tags/concurrency.md>), [database](<https://devfeed.tech/tags/database.md>), [deadlock](<https://devfeed.tech/tags/deadlock.md>), [java](<https://devfeed.tech/tags/java.md>), [jvm](<https://devfeed.tech/tags/jvm.md>), [loom](<https://devfeed.tech/tags/loom.md>), [performance](<https://devfeed.tech/tags/performance.md>), [virtual-threads](<https://devfeed.tech/tags/virtual-threads.md>)

### AI overview

The article explains how Java virtual threads improve concurrency for services that spend much of their time waiting on blocking I/O, while providing no benefit for CPU-bound work. It discusses carrier pinning, avoiding virtual-thread pools, and placing concurrency limits at constrained downstream resources.

### Source excerpt

A virtual thread that blocks on I/O unmounts from its carrier and costs nothing while it waits, which makes thread-per-request viable at concurrency levels that would have needed reactive code. It does nothing for CPU bound work, because computation still needs a real core and the carrier pool is sized to the core count. Pooling virtual threads is an anti-pattern since they are cheap to create, and blocking inside a synchronized block pins the carrier, which can deadlock a workload that would have been fine on platform threads.

## Using the GitHub Copilot SDK for Java

DevFeed: [Using the GitHub Copilot SDK for Java](<https://devfeed.tech/articles/using-the-github-copilot-sdk-for-java-19854.md>)

Original publisher: [Read original article](<https://github.blog/engineering/using-the-github-copilot-sdk-for-java/>)

Author: Edward Burns

Published: 2026-08-10T19:30:00Z

Content type: tutorial

Language: en

Sources: [GitHub Blog](<https://devfeed.tech/sources/github-engineering.md>), [GitHub Engineering](<https://devfeed.tech/sources/github.md>)

Topics: [GitHub Copilot SDK](<https://devfeed.tech/topics/github-copilot-sdk.md>), [SDK](<https://devfeed.tech/topics/sdk.md>), [Jakarta EE](<https://devfeed.tech/topics/jakarta-ee.md>), [Spring Framework](<https://devfeed.tech/topics/spring-framework.md>), [langchain4j](<https://devfeed.tech/topics/langchain4j.md>), [GitHub Copilot CLI](<https://devfeed.tech/topics/github-copilot-cli.md>)

Tags: [agent-harness](<https://devfeed.tech/tags/agent-harness.md>), [ai](<https://devfeed.tech/tags/ai.md>), [ai-ml](<https://devfeed.tech/tags/ai-ml.md>), [application](<https://devfeed.tech/tags/application.md>), [copilot](<https://devfeed.tech/tags/copilot.md>), [engineering](<https://devfeed.tech/tags/engineering.md>), [github](<https://devfeed.tech/tags/github.md>), [github-copilot](<https://devfeed.tech/tags/github-copilot.md>), [github-copilot-sdk](<https://devfeed.tech/tags/github-copilot-sdk.md>), [house](<https://devfeed.tech/tags/house.md>), [jakarta-ee](<https://devfeed.tech/tags/jakarta-ee.md>), [java](<https://devfeed.tech/tags/java.md>), [lead-management](<https://devfeed.tech/tags/lead-management.md>), [london](<https://devfeed.tech/tags/london.md>), [sdk](<https://devfeed.tech/tags/sdk.md>), [threads](<https://devfeed.tech/tags/threads.md>), [virtual](<https://devfeed.tech/tags/virtual.md>), [virtual-threads](<https://devfeed.tech/tags/virtual-threads.md>)

### AI overview

The GitHub Copilot SDK for Java lets server-side Java code create Copilot agent sessions, register tools, send prompts, and receive structured responses programmatically. The post presents it as framework agnostic, usable with Jakarta EE or Spring, and AI vendor neutral through BYOK; it contrasts this with dependencies on Langchain4j or Spring AI. The SDK uses familiar Java features including annotations, lambdas, and virtual threads. The sample is a Jakarta EE 11 real-estate lead-management pipeline that starts an isolated Copilot agent on a virtual thread to process customer enquiries. Requirements listed are JDK 17 or 25 (25 recommended), Maven 3.9+, an active Copilot subscription, and Copilot CLI 1.0.71 or later.

### Source excerpt

Enterprise Java developers have a new superpower--drive GitHub Copilot from idiomatic Java code with annotations, virtual threads, and more. The post Using the GitHub Copilot SDK for Java appeared first on The GitHub Blog.