def produce(): string = random_string(N) Synched.out("{name} produced << {prod} >>", name=str(self.name), prod=string) q_input.put(string) time.sleep(1)
def print_random_string(n): str = random_string(n) Synched.out("print_random_string:: {rnd}", rnd = str)
def genstring(N): string = random_string(N) #thread_say("Generated: {string}", string=string) return string
def produce_str(N): s = random_string(N) print_thread("produce_str: <{s}>; N = {N}", s = s, N = N) return s