Skip to content

Instantly share code, notes, and snippets.

@davidtsong
Created May 26, 2014 21:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davidtsong/2fa8c571f9bd2f20bc5b to your computer and use it in GitHub Desktop.
Save davidtsong/2fa8c571f9bd2f20bc5b to your computer and use it in GitHub Desktop.
Creating a new thread by extending the Thread Class
public class MyThread extends Thread{
public void run()
{
//run code goes here
}
}
MyThread myThread = new MyThread();
myThread.start()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment