04-14-2010 02:51 PM - edited 04-14-2010 02:52 PM
VeeJay wrote:Thank you! That clarified a lot!!
_________________________________________________________________________________________
quote "Several loops (for and while, and timed) can run in parallel if they have no data dependency. "
_____________________________________________________________________________________
What if they do communicate with each other (having data dependency) in terms of one loop sending the command to another and the other sending its feedback?
Thanks! 🙂
It depends on what you mean by data dependency. If the communication is via queue then they send data to each other, but there's no physical wire, so they can run in parallel. But if there's a wire that comes out of one loop and into the other, then the second loop cannot run until the first one has finished (see attached picture):
EDIT: altenbach answered the question while I was composing my reply.
04-14-2010 03:03 PM
04-15-2010 08:48 AM
Great explaination and example! I really appreciate it. Fortunately, I would have one loop running faster than the other; in that case, I assume I will be OK!
Thanks guys
V~J