|
You are here |
inside.java | ||
| | | | |
www.morling.dev
|
|
| | | | | Update Jun 3: This post is discussed on Reddit and Hacker News Project Loom (JEP 425) is probably amongst the most awaited feature additions to Java ever; its implementation of virtual threads (or "green threads") promises developers the ability to create highly concurrent applications, for instance with hundreds of thousands of open HTTP connections, sticking to the well-known thread-per-request programming model, without having to resort to less familiar and often more complex to use reactive approaches. Having been in the workings for several years, Loom got merged into the mainline of OpenJDK just recently and is available as a preview feature in the latest Java 19 early access builds. I.e. it's the perfect time to get your hands onto virtual threads and... | |
| | | | |
renato.athaydes.com
|
|
| | | | | ||
| | | | |
sigpwned.com
|
|
| | | | | Because Java 21 virtual threads are very cheap -- per JEP Cafe, they are about 1,000 times faster to launch than a platform thread, and use about 1,000 times less memory than a platform thread -- they should never be pooled. As a result, ThreadLocal variables are unlikely to be useful in applications that use | |
| | | | |
kylewbanks.com
|
|
| | | There's three common methods of creating a String with the appropriate user ID in place, namely direct string concatenation, using a StringBuilder, or using String.format. I personally find using the String.format method to be the cleanest and tend to use it when applicable, but I recently began wondering how it act... | ||