I have programmed the following code in Python:
from concurrent.futures import ProcessPoolExecutor, ThreadPoolExecutor, as_completed import random import time