my program runs in 2 processes in parallel inside one while loop , and should stop when one of them ends.
How can I do that? Using 'OR' function wired to loop stop condition will not do the job, as it waits for both process to give their input before it executes.
What I really need, is a function that will wait till it gets a 'true' through one of its input, and then executes without waiting for the other.
Is there such an option?
If not, does someone have an idea how to achieve what I've described here?
Thanks in advance!