import thread, time, urllib2
urls = ['http://www.ucc.ie', 'http://www.dkit.ie', 'http://www.ul.ie']
def getUrlInfo(x):
    newTime = time.time()
    resp = urllib2.urlopen(x)
    print resp.getcode()
    #print resp.geturl()
    print 'It took ',time.time()-newTime,' seconds to get a reply from',x

for y in urls:
    thread.start_new_thread(getUrlInfo, (y,))
