Quantcast
Channel: Concurrency – Java Creed
Browsing all 10 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

Swing Worker Example

Java provides a neat way to carry out long lasting jobs without have to worry about the complexity of threads or lack of responsiveness in an application (by application we mean Swing applications). It...

View Article



Stopping the Future in Time

In Java 5, a new set of classes related to concurrency was added to the Java API, mostly authored by the famous Doug Lea. These include the ExecutorService (Java Doc) and the Future (Java Doc) classes...

View Article

Understanding Threads, Monitors and Locks

In this article we will see how to use threads and how to coordinate their flow by making proper use of monitors and locks.

View Article

How to cache results to boost performance

This article describes the challenges encountered when developing a caching algorithm. It also provides a simple, yet very powerful generic and thread-safe caching algorithm that can be used in many...

View Article

What is Deadlock and How to Prevent It?

Imagine you are waiting for a call from your girlfriend with whom you had an argument. She too is waiting for you to call her and apologise. In other words, both of you are waiting for the other to...

View Article


Testing Swing Application

This tutorial demonstrates how to develop a simple Java Swing (or user interface) application and test the UI related logic using automated tests, such as JUnit (Homepage), using a series of videos...

View Article

What is Race Condition and How to Prevent It?

Say that you are eating some sweets while watching a movie. You had a look at your pack or sweets, counted five and continued watching the movie. Took the first one and deducted this in your mind...

View Article

Java Fork Join Example

Java 7 introduced a new type of ExecutorService (Java Doc) called Fork/Join Framework (Tutorial), which excels in handling recursive algorithms. Different from other implementations of the...

View Article


The Broken Singleton

The Singleton (Wiki) pattern is quite an old and well known pattern. This pattern was discussed over and over again in many books and articles on the web. So why are we discussing it again here? This...

View Article


Software Transactional Memory Example using Multiverse

Transactions are an essential part of any business critical application as these ensure the integrity of the data being managed by the same application. Transactions ensure that the data remains in a...

View Article
Browsing all 10 articles
Browse latest View live




Latest Images