# JDK21 Virtual thread instead of real thread

**URL:** <https://community.temporal.io/t/jdk21-virtual-thread-instead-of-real-thread/11452>\
**Category:** Community Support\
**Tags:** java-sdk\
**Created:** [March 21, 2024, 4:48am UTC](https://community.temporal.io/t/jdk21-virtual-thread-instead-of-real-thread/11452 "2024-03-21T04:48:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jxwang](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/jxwang/32/4270_2.png) [@jxwang](https://community.temporal.io/u/jxwang)\
**Post date:** [March 21, 2024, 4:48am UTC](https://community.temporal.io/t/jdk21-virtual-thread-instead-of-real-thread/11452/1 "2024-03-21T04:48:23Z")

</div>

Hi Temporal,

Is there any plan to upgrade to use jdk 21 virtual thread instead of real thread which can improve the number of workflows that can be cached in Java?

Best regards,  
Jx

---

<div class="post-metadata">

**Author:** ![tihomir](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/tihomir/32/6580_2.png) [@tihomir](https://community.temporal.io/u/tihomir)\
**Post date:** [March 21, 2024, 3:42pm UTC](https://community.temporal.io/t/jdk21-virtual-thread-instead-of-real-thread/11452/2 "2024-03-21T15:42:41Z")

</div>

Hi, yes can track [Support for virtual threads (project Loom) · Issue #1448 · temporalio/sdk-java · GitHub](https://github.com/temporalio/sdk-java/issues/1448)

---

<div class="post-metadata">

**Author:** ![Aliasgar](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/aliasgar/32/3145_2.png) [@Aliasgar](https://community.temporal.io/u/Aliasgar)\
**Post date:** [September 24, 2024, 3:57am UTC](https://community.temporal.io/t/jdk21-virtual-thread-instead-of-real-thread/11452/3 "2024-09-24T03:57:44Z")

</div>

In our use-case, we make API calls from temporal activities.  
This means the threads used by temporal activity workers simply wait for the API response.

Now that Virtual Threads is a full-fledged feature in java ([JEP 444: Virtual Threads](https://openjdk.org/jeps/444))  
Can it please be adopted in Temporal Java-SDK.  
This will significantly improve the concurrent activities being served per instance of our application.
