public static void main(String args[])
	{
		//total count is 41411,each time fetch 2000 records
		int total=41411;
		int limit=2000;
		connection conn;
		SQLconnection sqLconnection;
		conn=new connection();
		sqLconnection=conn.conn();
		ExecutorService executorService = Executors.newFixedThreadPool(total/limit);
		long begin=System.currentTimeMillis();
		for(int i=0;i<=total/limit;i++)
		{
			String query="select term from term5index limit "+(i*limit)+","+limit;
			ResultSet rsSet=null;
			String name="T"+i;
			rsSet=sqLconnection.Query(query);
			executorService.execute(new SetTerm_IDList(name,rsSet));
		}

		executorService.shutdown();
		while(!executorService.isTerminated())
		{}
		long end=System.currentTimeMillis();
		System.out.println("total time of multi thread: "+(end-begin)/1000);
		
		/*String query="select term from term5index limit 41000,1000";
		ResultSet rsSet=null;
		rsSet=sqLconnection.Query(query);
		ThreadOfTermIDList r1=new ThreadOfTermIDList("Last",rsSet);
		Thread T1=new Thread(r1);
		T1.start();*/
	}