Click here to watch in Youtube :
https://www.youtube.com/watch?v=rgU_agkphI8&list=UUhwKlOVR041tngjerWxVccw
Click the below Image to Enlarge
Java Tutorial : Java Threads (Java multithreading Introduction) |
Java Tutorial : Java Threads (Java multithreading Introduction) |
public class MainThread { public static void main(String[] args) { Thread thread = Thread.currentThread(); thread.setName("MainThread"); System.out.println("Name of thread = " + thread); } }
Name of thread = Thread[MainThread,5,main]Click the below link to download the code:
https://sites.google.com/site/ramj2eev1/home/javabasics/Java_MultiThreading_App.zip?attredirects=0&d=1
Github Link:
https://github.com/ramram43210/Java/tree/master/BasicJava/Java_MultiThreading_App
Bitbucket Link:
https://bitbucket.org/ramram43210/java/src/5edb9b935a4ef60d2a672d03f038390cd08d4eb7/BasicJava/Java_MultiThreading_App/?at=master
See also:
No comments:
Post a Comment