Last active
August 29, 2015 14:25
-
-
Save bmschmidt/d1cc49066f775992f275 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import math | |
import random | |
""" | |
This script does nothing, but uses up processor speed doing it. | |
""" | |
swatch = False | |
while True: | |
if swatch: | |
p = math.sqrt(random.random()) | |
swatch = False | |
else: | |
swatch = True |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
all: | |
find ~ | parallel -n 1 -P 4 python dummy.py |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from subprocess import call | |
call("make",shell=True) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Running master.py uses multiple cores. Phew.