Use multithreading instead of multiprocessing.