diff --git a/Demo/threads/find.py b/Demo/threads/find.py index d244beaf25a..f858ccceb86 100644 --- a/Demo/threads/find.py +++ b/Demo/threads/find.py @@ -77,6 +77,7 @@ def _donework(self): self.mutex.release() def _worker(self): + time.sleep(0.00001) # Let other threads run while 1: job = self._getwork() if not job: @@ -97,6 +98,7 @@ def run(self, nworkers): # Main program def main(): + sys.argv.append("/tmp") nworkers = 4 opts, args = getopt.getopt(sys.argv[1:], '-w:') for opt, arg in opts: