Python, Concurrency, Parallelism, Multiprocessing, Asynchronous.
threading.Thread(target=foo1, args=(4,)) t1.start() t2 = threading.Thread(target=foo2, args=(4,)) t2.start() print("Main Finito") ######## in foo1: 0 in foo2: 0 Main Finito in foo1: 1 in foo1: 2 in foo2: 1 in foo1: 3 in foo2: 2 in foo2: 3 Since foo1 processes its instructions more quickly, it