def deterministicPool():
 (worker, doer) = createMemoryWorker()
 return (DeterministicThreadPool(Team(LockWorker(Lock(), local()), (lambda : worker), (lambda : None))), doer)

def deterministicPool ( ) : ( worker , doer ) = createMemoryWorker ( ) return ( DeterministicThreadPool ( Team ( LockWorker ( Lock ( ) , local ( ) ) , ( lambda : worker ) , ( lambda : None ) ) ) , doer )
create a deterministic threadpool .