Skip to content

Instantly share code, notes, and snippets.

@jcmiller11
jcmiller11 / walk.py
Last active October 7, 2017 02:38
Random Walk Using Race Conditions
from __future__ import print_function
from threading import Thread
from time import sleep
WALKNUM = 0
STEPNUM = 0
KILL = False
def increment(value):
global WALKNUM