Skip to content

Instantly share code, notes, and snippets.

View jxcodetw's full-sized avatar

JxCode jxcodetw

  • Taiwan, Taichung
View GitHub Profile
@tott
tott / gist:3895832
Created October 15, 2012 21:57
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: