Python, Concurrency, Parallelism, Multiprocessing, Asynchronous.
reduced to approximately 9 seconds. Let’s use multithreading: def main(): start_time = time.time() t1 = threading.Thread(target=calculator, args=(10000000,)) t2 = threading.Thread(target=calculator, args=(20000000,)) t1.start() t2.start() t1.join() t2.join() print("Runtime: ", time.time() -