Code:
from threading import Thread
import time
def main():
print([threadID])
time.sleep(5)
pass
if __name__ == '__main__':
threadID = 0
while threadID < 5:
main()
threadID +=1
Currently, it runs the first thread, then once it is finished it starts the next.
How can I get all threads to start at the same time?