Problem: How to create a task running as a Java Thread? Thread and Runnable are the most basic concurrent types to use. In this post we show how to use Thread to execute concurrent tasks.
Problem: How to correctly run tasks that implement Java Runnable? In the following example we’re going to show how to use the most fundamental interface of Java concurrency.