Non fault tolerant Non fault tolerant because whenever something goes wrong, the entire order gets screwed up and cannot reach the end point

Fault tolerant

Parallel and Distributed Computing: First make a simple code that runs sequentially, for example loops ten times before stopping. Then make code that completes the same job quicker by running parallel.

Sequential

import time

start = time.time()

for i in range(10): print(i)

end = time.time() print(“timer thing:”, end - start)

0 1 2 3 4 5 6 7 8 9 Sequential time: 5.4836273193359375e-05

Parallelism

import time import multiprocessing

start = time.time()

def print_num(num): print(num)

if name == ‘main’: pool = multiprocessing.Pool(processes=10) pool.map(print_num, range(10)) pool.close() pool.join()

end = time.time() print(“time thing again:”, end - start)