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