featured.png

Stratum 1 NTP Deployment

Deploying a Stratum 1 NTP server with a Raspberry Pi and a GPS as a timing source.

Basics of multiprocess with python with the requests lib Build a list of URL that you want to get. project_url_list_pages = ['www.potato.com', 'www.potato1.com', 'www.potato2.com'] Create your pool of workers. You can hardcode the number or get it from the CPU amount import multiprocessing pool = Pool(processes=32) multiprocessing.cpu_count(multiprocessing.cpu_count()) Map the function you need to speed up to a pool of workers. import requests def get_url_multiprocess(url): data = requests.