GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — Java/java/thread/createthread.java at main · Vishuu005/Java Expand file tree/ Copy pathcreatethread.javaMore file actions 19 lines (18 loc) · 476 Bytes / Copy pathcreatethread.javaFile metadata and controls19 lines (18 loc) · 476 Bytes 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 //smart programming for creating thread class Test extends Thread { public void run() { Thread.currentThread().setName("Avnish"); System.out.println("this run method by executed "+Thread.currentThread().getName());//Thread-Avnish } public static void main(String[] args) { System.out.println("this main thread by executed "+Thread.currentThread().getName());//Thread main Test t1=new Test(); t1.start(); Test t2=new Test(); t2.start(); System.out.println(t1.isAlive()); } } |
| You are visitor 01402520 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |