Unfortunately, the tombstone was nameless. Julia had been told that her mother had been buried in the Cresent Woods cemetery in Rhode Island. She had come all the way to show her final respects as soon as she was out of rehabilitation. She had been a drug addict for most of her short life and now she felt alive and free. She had a mental breakdown after getting the news of her mother’s death and had tried to escape from a window in her cell. Julia had cried for nights and she was not much different today. She had already walked in circles around the graveyard, searching for ‘Maria Roberts’ in one of them. She had already walked past each and every tombstone until she found the nameless one. She was certain that it had been her mother’s as she saw the year of death to be 1987, the year her mother had tragically passed away. It stood alone at the edge of the cemetery, where wildflowers grew untamed, and the wind whispered secrets only the Earth could hear. The tombstone was weathe...
In this blog post, I will introduce you to the concept of virtual threads in Java and how they can improve the performance and scalability of your applications that rely on networking I/O. Virtual threads are lightweight threads that reduce the effort of writing, maintaining, and debugging high-throughput concurrent applications. They are instances of java.lang.Thread that are not tied to a specific operating system (OS) thread, but rather run on a small number of OS threads managed by the Java runtime. This allows the Java runtime to suspend and resume virtual threads when they perform blocking I/O operations, freeing up the OS threads for other tasks. Virtual threads typically have a shallow call stack and perform as few as a single HTTP client call or a single JDBC query. They are suitable for tasks that spend most of their time waiting for I/O, but not for long-running CPU-intensive tasks. Virtual threads are supported by the Java Platform since Java SE 21. They are part of Project...