Close Menu
Şevket Ayaksız

    Subscribe to Updates

    Get the latest creative news from FooBar about art, design and business.

    What's Hot

    Google Maps vs Waze: I Put the Two Best Navigation Apps Head-to-Head — and One Clearly Came Out on Top

    Mayıs 1, 2026

    Samsung Electronics Offers Free 32-Inch Odyssey gaming monitor: Eligibility and How to Claim Deal

    Mayıs 1, 2026

    T-Mobile Bundles Free Hulu and Netflix for 5G Users: Eligibility Explained

    Mayıs 1, 2026
    Facebook X (Twitter) Instagram
    • software
    • Gadgets
    Facebook X (Twitter) Instagram
    Şevket AyaksızŞevket Ayaksız
    Subscribe
    • Home
    • Technology

      Google Maps vs Waze: I Put the Two Best Navigation Apps Head-to-Head — and One Clearly Came Out on Top

      Mayıs 1, 2026

      T-Mobile Bundles Free Hulu and Netflix for 5G Users: Eligibility Explained

      Mayıs 1, 2026

      This Portable Mini PC Is the Unexpected Raspberry Pi Alternative You Might Actually Want

      Mayıs 1, 2026

      Samsung warns RAM shortages could worsen beyond 2027

      Mayıs 1, 2026

      Oxford study finds friendly AI chatbots are less accurate

      Mayıs 1, 2026
    • Adobe
    • Microsoft
    • java
    • Oracle
    Şevket Ayaksız
    Anasayfa » Java Virtual Threads Encounter Pinning Issue
    java

    Java Virtual Threads Encounter Pinning Issue

    By mustafa efeTemmuz 6, 2024Yorum yapılmamış3 Mins Read
    Facebook Twitter Pinterest LinkedIn Tumblr Email
    Share
    Facebook Twitter LinkedIn Pinterest Email

    Java Team’s Efforts on Addressing Virtual Thread Parking and Blocking Issues

    Oracle’s introduction of Java’s virtual threads with JDK 21 in September 2023 aimed to simplify concurrent application development but has encountered a significant “pinning” issue related to synchronized methods or statements.

    This week, Oracle addressed the virtual thread pinning problem on the Inside Java website, highlighting two primary scenarios: a virtual thread parking within a synchronized method and a virtual thread blocking upon attempting to enter a synchronized method held by another thread’s monitor. In both cases, the underlying carrier or native thread remains occupied, unable to perform other tasks. This issue poses risks to performance, scalability, and can potentially lead to starvation or deadlock, as noted in Oracle’s blog post.

    To mitigate these concerns, new early access builds for Java’s Project Loom have revised the object monitor implementation. These changes aim to prevent thread pinning in the identified scenarios, enhancing the reliability and performance of virtual threads in heavily synchronized environments. The Loom development team encourages developers to test these updates extensively, especially in scenarios involving virtual threads and synchronized libraries, and to provide feedback via the Loom mailing list.

    Project Loom, part of the OpenJDK initiative, focuses on enhancing Java Virtual Machine (JVM) features and APIs to support lightweight concurrency. Virtual threads, initially previewed in JDK 19 and JDK 20, offer a streamlined approach to handling high-throughput concurrent applications, minimizing the complexities traditionally associated with thread management in Java.

     

     

    Despite the pinning issue’s challenges, Oracle underscores the positive reception of virtual threads within the Java community and broader ecosystem. The ongoing development efforts and collaborative testing are critical steps towards resolving these issues and further optimizing Java’s concurrency capabilities for future releases.

    Oracle detailed the virtual thread pinning issue this week on the Inside Java website. The two most common cases involve a virtual thread parking while in a synchronized method, and a virtual thread blocking when entering a synchronized method, because the object’s associated monitor is held by another thread. In both cases, the carrier or native thread is not released to do other other work. Virtual thread pinning could impact performance and scalability and potentially result in starvation and deadlock, according to the blog post.

    New early access builds for Java’s Project Loom introduce changes to the object monitor implementation that do not pin in these two common cases. The Loom team is seeking help from users to test the reliability and performance of these updated object monitors with code that uses virtual threads and with libraries that are heavily synchronized. To report an issue, developers should use the Loom mailing list.

    Post Views: 401
    java Programming Languages Software Development
    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email
    mustafa efe
    • Website

    Related Posts

    Optimizing Java Streams for High-Performance Applications

    Aralık 20, 2025

    AI Brings a New Spark to JavaScript Programming

    Kasım 9, 2025

    Revisiting the Spring Framework: What’s New and Why It Still Matters

    Kasım 9, 2025
    Add A Comment

    Comments are closed.

    Editors Picks
    8.5

    Apple Planning Big Mac Redesign and Half-Sized Old Mac

    Ocak 5, 2021

    Autonomous Driving Startup Attracts Chinese Investor

    Ocak 5, 2021

    Onboard Cameras Allow Disabled Quadcopters to Fly

    Ocak 5, 2021
    Top Reviews
    9.1

    Review: T-Mobile Winning 5G Race Around the World

    By sevketayaksiz
    8.9

    Samsung Galaxy S21 Ultra Review: the New King of Android Phones

    By sevketayaksiz
    8.9

    Xiaomi Mi 10: New Variant with Snapdragon 870 Review

    By sevketayaksiz
    Advertisement
    Demo
    Şevket Ayaksız
    Facebook X (Twitter) Instagram YouTube
    • Home
    • Adobe
    • microsoft
    • java
    • Oracle
    • Contact
    © 2026 Theme Designed by Şevket Ayaksız.

    Type above and press Enter to search. Press Esc to cancel.