multithreading

multithreading added.