Skip to content

Instantly share code, notes, and snippets.

View mahendrapaipuri's full-sized avatar
🐿️

Mahendra Paipuri mahendrapaipuri

🐿️
View GitHub Profile
@mahendrapaipuri
mahendrapaipuri / gist:01964b168c5fad191d5c0a9e532bc70c
Created July 26, 2023 18:00 — 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: