import thread as th
import time

a = range(100000000)

def worker(func,thing):
	start_time = time.time()
	print "start time is:",start_time
	res = func(thing)
	print res
	end_time = time.time()
	print "End at:",end_time,"That took:",end_time-start_time, 'seconds'

t1 = th.start_new_thread(worker,(min,a))
t2 = th.start_new_thread(worker,(max,a))

while True:
	time.sleep(1)

