0

So I've looked at some solutions to pause loops in python, but they all sum down to having a trigger and that trigger pauses the loop from inside, similar to the post below.

How to pause multiprocessing process?

However, I'm trying to look for a solution where I use multiprocessing and the main loop can freeze the multiprocess from the outside, without passing triggers into shared memory.

The reason I want to do this is because the multiprocess loop takes very long (in terms of time) and it would check for the pause condition only once in a while if the trigger were to pause from the inside. Is this possible, or would the best way of doing this be adding a bunch of trigger checkpoints within the multiprocess loop?

martineau
  • 112,593
  • 23
  • 157
  • 280

0 Answers0