-
threads
Worker coordination using WorkQueue
In this example we shall show you how to achieve a coordination between two threads that try to get the…
Read More » -
threads
ThreadLocal example
With this example we are going to demonstrate how to create a ThreadLocal. The ThreadLocal class provides thread-local variables. These variables differ…
Read More » -
threads
Thread communication using Queue example
This is an example of how to achieve a queue communication between two Threads. The example is described in short: We…
Read More » -
threads
Find rhyming words using QuickSort
In this example we shall show you how to find rhyming words using the QuickSort algorithm. We have created two classes,…
Read More » -
threads
Thread performance on Atomic type
With this example we are going to demonstrate how to check a thread performance on atomic type. We are testing…
Read More » -
threads
Synchronized/Unsynchronized collection performance test
This is an example of how to test the performance of synchronized and unsynchronized Collection. The test is described below:…
Read More » -
threads
Safe collection iteration example
In this example we shall show you how to obtain a safe Collection iteration. We are using the List implementation…
Read More » -
threads
Vector copy example
With this example we are going to demonstrate how to get a copy of a Vector. We are using the synchronized…
Read More » -
threads
List copy example
This is an example of how to make a safe List copy. Making a safe List copy implies that you…
Read More » -
threads
PriorityQueue example
In this example we shall show you how to use a PriorityQueue. To use a PriorityQueue one should perform the following…
Read More »