core java
-
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 » -
threads
BlockingQueue example
With this example we are going to demonstrate how to use a BlockingQueue. The steps of the example are described…
Read More » -
threads
Unbounded work queue example
This is an example of an unbounded work queue. The steps of creating and using an unbounded work queue are…
Read More » -
threads
Bounded work queue example
In this example we shall show you how to create a use a bounded work queue. To create and use…
Read More » -
threads
Sleep Thread
With this example we are going to demonstrate how to make a Thread sleep. In short, to make a Thread…
Read More » -
threads
Set Thread Name
This is an example of how to set a Thread‘s name. Setting a Thread’s name implies that you should: Get a…
Read More » -
threads
Current Thread Information
In this example we shall show you how to get the current Thread‘s information, such as id, name group and…
Read More »