public class MURLDownloader
{
	public static void main(String[] args)
	{
/*
		Thread pknu = new Thread(new URLThread(args[0], args[1]));
		Thread yahoo = new Thread(new URLThread(args[2], args[3]));
		Thread amazon = new Thread(new URLThread(args[4], args[5]));

		pknu.start();
		yahoo.start();
		amazon.start();
*/
		int paraArraySize = args.length/2;
		int argumants = 0;
		Thread t_site[] = new Thread[paraArraySize];

		for(int i=0; i<paraArraySize; i++)
		{
			// ¸ÞÀÎÇÔ¼ö ÀÎÀÚ°ªµéÀ» Runnable ÀÎÅÍÆäÀÌ½º¸¦ implements ¹ÞÀº Å¬·¡½º¿¡ Àü´Þ = ÄÄÆ÷Áö¼Ç
			t_site[i] = new Thread(new URLThread(args[argumants++],args[argumants++]));
		}

		for(Thread i : t_site)
		{
			// ¾²·¹µå ½ÇÇà ¸Þ¼­µå
			i.start();
		}
	}
}