Skip to content

Instantly share code, notes, and snippets.

View angelo1003's full-sized avatar

Terry Jeon angelo1003

View GitHub Profile
@angelo1003
angelo1003 / gist:2db132a6e162f5cbb29f77366af2bd27
Created September 25, 2020 19:37 — forked from tott/gist:3895832
create cpu load in python
#!/usr/bin/env python
"""
Produces load on all available CPU cores
"""
from multiprocessing import Pool
from multiprocessing import cpu_count
def f(x):
while True: