Tuesday 31 May 2016

multithreading - How to start other script inside a running python script(A new thread or process?)

If I have a program like this:



for i in range (25000):
do something
if i == 5000:
run new_script.py in a new thread/process
continue as before


How can I do this?

No comments:

Post a Comment

c++ - Does curly brackets matter for empty constructor?

Those brackets declare an empty, inline constructor. In that case, with them, the constructor does exist, it merely does nothing more than t...