from multiprocessing import Pool from threading import Thread if __name__ == "__main__": Thread(target=Pool, args=(1,)).start() Thread(target=Pool, args=(1,)).start()