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