Created
May 26, 2014 21:31
-
-
Save davidtsong/2fa8c571f9bd2f20bc5b to your computer and use it in GitHub Desktop.
Creating a new thread by extending the Thread Class
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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