class MyWork implements Runnable{
	...
	public void run(){

		//do your thing...

	}
}

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

		Thread t1=new Thread(mw1);
		Thread t1=new Thread(mw2);

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