Guest User

Untitled

a guest
May 9th, 2019
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.53 KB | None | 0 0
  1. def create_thread_1(parser):
  2.     return thread_1(parser, opt_arg1=global_var, opt_arg2=global_sync_primitive)
  3.  
  4. def create_thread_2(parser):
  5.     return thread_2(parser, opt_arg1=global_var, opt_arg3=global_sync_Queue)
  6.  
  7. def create_thread_3(parser, t1, t2):
  8.     return thread_3(parser, t1, t2)
  9.  
  10. if __name__ = "__main__":
  11.     parser = configparser() # assume parser has been initializated from a file
  12.     t1 = create_thread_1(parser)
  13.     t2 = create_thread_2(parser)
  14.  
  15.     t3 = create_thread_3(parser, t1, t2)
  16.  
  17.     # start threads and continue with process
Advertisement
Add Comment
Please, Sign In to add comment