Hi! I have a question on the order in which semaphores are acquired and released. I've looked a the semaphore example and from what I can gather the order in which the semaphores are requested is respected.
I have two processes and they must execute one after another. These processes are in seperate VIs and take an indeterminate amount of time to execute. I have one semaphore that is grabbed by one process, released, grabbed by the other process, released, and so forth.
My question is this. How can I be sure that right after one process releases a semaphore, the other one grabs it? Isn't there a chance that the very process that just released the semaphore can re-aquire the semaphore before the other process had a chance to request it?
Am I banking on the fact that the time it takes to loop back to the request, after the release, will always be less than the time it takes to run the code within my process?
Thanks!
PS. i've been trying to find more documentation besides the help file and pre-loaded semaphore example on labview's implementation of semaphores. If anyone has any other docs that would think would help clarify labview semaphore concepts feel free to send them my way 🙂