import time from multiprocessing import * def f(): while True: if time.strftime("%H:%M:%S") >= "18:00:00": break if __name__ == '__main__': for i in range(3): Process(target=f).start()