<s> from gevent . monkey import patch_all <EOL> patch_all ( thread = False ) <EOL> from threading import Thread <EOL> import time <EOL> def func ( ) : <EOL> time . sleep ( ) <EOL> def main ( ) : <EOL> threads = [ ] <EOL> for _ in range ( <NUM_LIT:3> ) : <EOL> th = Thread ( target = func ) <EOL> th . start ( ) <EOL> threads . append ( th ) <EOL> for th in threads : <EOL> th . join ( ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> main ( ) </s>
