Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def create_thread_1(parser):
- return thread_1(parser, opt_arg1=global_var, opt_arg2=global_sync_primitive)
- def create_thread_2(parser):
- return thread_2(parser, opt_arg1=global_var, opt_arg3=global_sync_Queue)
- def create_thread_3(parser, t1, t2):
- return thread_3(parser, t1, t2)
- if __name__ = "__main__":
- parser = configparser() # assume parser has been initializated from a file
- t1 = create_thread_1(parser)
- t2 = create_thread_2(parser)
- t3 = create_thread_3(parser, t1, t2)
- # start threads and continue with process
Advertisement
Add Comment
Please, Sign In to add comment