Python, Concurrency, Parallelism, Multiprocessing, Asynchronous.
range(n): liste.append(i) time.sleep(0.3) def foo2(n): for i in range(n): liste.append(i) time.sleep(0.3) t1 = threading.Thread(target=foo1, args=(4,)) t1.start() t2 = threading.Thread(target=foo2, args=(4,)) t2.start() print(liste) print("Main Finito") ##### [0, 0] Main Finito If we introduce a