Dec-07-2019, 11:25 AM
(This post was last modified: Dec-07-2019, 11:26 AM by LoganSulpizio.)
Hello,
I'm new with Python and I'm trying to learn it.
I would like to know how can I start/run several python scrip at the same time. I'm not familiar with it, do you have any good references where I could learn that?
More details:
For now I have two scripts (others may be added):
1: A script that takes some specific frames in a video stream and save them in a folder
2: A script that takes the frames of the folder (when he starts to be filled by script 1) and processes it.
Both script need to run "forever" with a loop (for now, I'm using 'While(True):' on both)
How could I run them simultaneously, in a way that they don't enter in conflict or interrupt each other, and which way should I use for me to be able to stop easily the 2 forever loop if needed?
Thank you
I'm new with Python and I'm trying to learn it.
I would like to know how can I start/run several python scrip at the same time. I'm not familiar with it, do you have any good references where I could learn that?
More details:
For now I have two scripts (others may be added):
1: A script that takes some specific frames in a video stream and save them in a folder
2: A script that takes the frames of the folder (when he starts to be filled by script 1) and processes it.
Both script need to run "forever" with a loop (for now, I'm using 'While(True):' on both)
How could I run them simultaneously, in a way that they don't enter in conflict or interrupt each other, and which way should I use for me to be able to stop easily the 2 forever loop if needed?
Thank you