previous | start | next

Running a Thread

  1. Create an object of your subclass
    Runnable r = new MyRunnable();
  2. Construct a Thread object from the runnable object.
    Thread t = new Thread(r);
  3. Call the start method to start the thread.
    t.start();

previous | start | next