Categories
Java

Stopping the threads

Starting a thread is very easy in java, after you create it you need to call the method start(), for example:

Thread myThread = new Thread(new MyRunnable());
myThread.start();

where MyRunnable is a class implementing the Runnable interface overidden the method run().