class MyWork extends Thread{
	int id=0;
	public MyWork(int id){
		this.id=id;
	}	
	public void run(){

		//do your thing...
		for(int i=0;i<100000;i++){
			System.out.println("我是執行緒"+id+"\t我正在跑圈");
		}

	}
}

class Test{
	public static void main(String args[]){
		MyWork mw1=new MyWork();
		MyWork mw2=new MyWork();

		mw1.start();
		mw2.start();
	}
}