Compact Equals
High-Octane Java
fast java equals | Java | Wednesday June 22, 2011 | By Obi Ezechukwu
In this post, I will demonstrate an effective and compact way to override Java's equals(...) method. To begin, please download the reference source code for the article and open it up in your preferred IDE. When laid out in the Eclipse IDE , the...
Recursion vs. Iteration: A simple performance comp...
High-Octane Java
java concurrency epsilon iteration recursion | Java | Sunday March 20, 2011 | By Obi Ezechukwu
Recursive algorithms abound in computer science. It is not too difficult to find examples in the areas of search, data minning, syntax parsing or mathematical programming. In the same way that it is easy to find examples of recursive algorithms, it is also...
Annotations, to do or not to do?
High-Octane Java
annotations design orm | Java | Monday March 07, 2011 | By Obi Ezechukwu
It goes without saying that annotations have been something of a massive boon to enterprise Java developers. In fact, we can safely say that it is one of the key weapons in a developer's arsenal when battling the complexity of various deployment descriptor and...
Deadlock anti-patterns #3: Incremental Locking
High-Octane Java
threads hold and java concurrency wait deadlock | Java | Friday March 04, 2011 | By Obi Ezechukwu
In the
previous instalment of this three part series, I examined
the 'Worker Aggregation' anti-pattern. I also listed
a number of ways to modify it so as to reduce the
probability of its implementations leading to deadlock.
Code samples were...
Deadlock anti-patterns #2: Worker Aggregation
High-Octane Java
threads concurrency deadlock java | Java | Thursday March 03, 2011 | By Obi Ezechukwu
In the first installment of this three part series , I described the problem of deadlock; focusing on the logical conditions that are necessary for a deadlock to occur. I also introduced the deadlock-prone No Arbitration anti-pattern which is evident in...
Deadlock anti-patterns #1: No arbitration
High-Octane Java
deadlock threads concurrency java | Java | Wednesday March 02, 2011 | By Obi Ezechukwu
Starvation occurs when one or more threads of execution are prevented from proceeding beyond a given point due to a predicate that will never be satisfied. Deadlock is a special form of starvation where threads of execution are prevented from making progress...