Why Loom?
One of the drivers behind streams in Java 8 was concurrent programming.
You may also like: Project Loom: Java With a Stronger Fiber
Tips, Expertise, Articles and Advice from the Pro's for Your Website or Blog to Succeed
One of the drivers behind streams in Java 8 was concurrent programming.
You may also like: Project Loom: Java With a Stronger Fiber
Blocking code is code which blocks executing threads until their operations finish. It's not always bad to block a thread and wait until the result is ready but there are situations where it's not optimal from a throughput and memory point of view. This article assumes some basic knowledge about the differences between blocking and non-blocking code.
What I am going to do is to introduce a very simple app with some blocking code inside and show you how you can easily figure out where your threads are usually blocked and then you might identify a better way to implement those certain parts of code and do it much more efficiently.