One of Java's most important contributions when it was first released, over twenty years ago, was the easy access to threads and synchronization primitives.
The Java threads are currently implemented as OS kernel threads which is insufficient for meeting modern demands, and wasteful in computing resources that are particularly valuable in the cloud. Project Loom will introduce fibers (virtual threads) as lightweight, efficient threads managed by the Java Virtual Machine, that let developers use the same simple abstraction but with better performance and lower footprint.
This session will describe and demo using Eclipse IDE :
* Difference between Threads and Virtual Threads
* How to use Virtual threads with ExecutorService to implement concurrency on a finer-grained level than threads
* Using Deadlines to stop the running tasks
* Debugger Support for virtual threads
Project Loom exists as a separate project right now and can be expected to be part of mainstream Java soon. It will be exciting to understand the details and and look at the challenges it poses for an IDE such as Eclipse. End of the session attendees would know the future directions in threading Java which can be made use of for faster executions, and the finer grain debugging aspect which would help them go a long way in fixing obscure concurrent program bugs.