Not that I intend to step on anyone's toes here, but it sounds to me like you should be looking at Multithreading.
FYI:
A thread is the smallest unit of execution you can have with an independent instruction set; each thread performing a particular task with a starting point, an execution sequence and a result.
Threads within the same process share memory as well as the process state and run synchronously in a single process.
In general, the process will have one thread (the main thread that is always running) which creates the sub-thread objects.
Python's multithreading is pretty user-friendly and the fundamentals can be learned fairly quickly.
A good overview can be found here: https://www.pythontutorial.net/advanced-...d-threads/
FYI:
A thread is the smallest unit of execution you can have with an independent instruction set; each thread performing a particular task with a starting point, an execution sequence and a result.
Threads within the same process share memory as well as the process state and run synchronously in a single process.
In general, the process will have one thread (the main thread that is always running) which creates the sub-thread objects.
Python's multithreading is pretty user-friendly and the fundamentals can be learned fairly quickly.
A good overview can be found here: https://www.pythontutorial.net/advanced-...d-threads/
Sig:
>>> import this
The UNIX philosophy: "Do one thing, and do it well."
"The danger of computers becoming like humans is not as great as the danger of humans becoming like computers." :~ Konrad Zuse
"Everything should be made as simple as possible, but not simpler." :~ Albert Einstein
>>> import this
The UNIX philosophy: "Do one thing, and do it well."
"The danger of computers becoming like humans is not as great as the danger of humans becoming like computers." :~ Konrad Zuse
"Everything should be made as simple as possible, but not simpler." :~ Albert Einstein