Java PriorityBlockingQueue - Thread-Safe and Memory Efficient Concurrent Heap
Michael Pogrebinsky Michael Pogrebinsky

Java PriorityBlockingQueue - Thread-Safe and Memory Efficient Concurrent Heap

In this article, we are going to learn about a very important thread-safe and memory-efficient data structure implementation, the PriorityBlockingQueue. We will first start by comparing it to the traditional heap-based PriorityQueue implementation, and later we will see what concurrency and performance-related features and guarantees the PriorityBlockingQueue provides to us.

Finally, we will write some Java code to see how a PriorityBlockingQueue is used in a practical real-life example.

Read More
Top 3 Tips to Improve your Java Application’s Performance
Advanced Java, Java Concurrency, Java Multithreading Michael Pogrebinsky Advanced Java, Java Concurrency, Java Multithreading Michael Pogrebinsky

Top 3 Tips to Improve your Java Application’s Performance

For many years Java had a bad reputation for being slow….throughout the years, there have been many advancements made in the JVM itself, that more than compensate for all those inefficiencies. And in recent years we see more and more companies use Java to develop low latency, high-performance applications for high-speed trading, scientific simulations, real-time bidding, mobile games, and more.

Read More
The Hidden Benefits of Java Multithreading
Michael Pogrebinsky Michael Pogrebinsky

The Hidden Benefits of Java Multithreading

When we think of the benefits of multithreading in Java, the following two often come to mind: high performance through parallel execution, and multitasking achieved through concurrency. However, there is a third benefit to multithreading that is often overlooked.

Read More
Top 3 Projects for Java Concurrency
Michael Pogrebinsky Michael Pogrebinsky

Top 3 Projects for Java Concurrency

The threading model is important for achieving high performance and responsiveness for your application, but getting it right is a challenge. In this article we’ll explore my top 3 picks for toolkits and frameworks for concurrency and multithreading.

Read More
Java 11 Removes stop() and destroy() Methods

Java 11 Removes stop() and destroy() Methods

In September 2018 Oracle finally released Java 11, following its 6 month release cycle. But why were those methods deprecated in the first place?

And how should we correctly stop threads?

Read More