package mutliThread;

import java.util.Queue;
import java.util.concurrent.ConcurrentLinkedQueue;

public class test {
 private Queue<String> queue = new ConcurrentLinkedQueue<String>();
 /**
  * @param args
  */
 public static void main(String[] args) {
  // TODO Auto-generated method stub
  TestThread pt = new TestThread();
  for(int i = 0 ;i<3;i++){
   pt = new TestThread();
   pt.start();
  }
 }

}
class TestThread extends Thread{
 public TestThread(){
  
 }
 public void run() {
  while(true){
   System.out.println(Thread.currentThread().getName());
  }
  
 } }