Jump to content
Sign in to follow this  
_Y_

Strange queue/debugging behavior probably related to race conditions

Recommended Posts

Hi all,

 

I got a strange queue behavior that is probably related to race conditions. The problem is eliminated (a way around is found), so there is no need in a quick solution. However, I would be happy to understand reasons for such a phenomenon.

 

BD of the “problematic†VI is attached. The queue size is limited to 1. The program consists of multiple asynchronous processes.

 

Execution reaches the Enqueue Element node than stops. The timeout never happens; the program hangs. However, there is more. If I try to execute the VI step-wise, everything works fine until the execution enters the internal Case Structure. When it enters, three Stepping buttons become disabled.

 

If I try to decompose the program, i.e. to use the same VI in a simple single-process program, both problems disappear.

 

Have you encountered such a strange behavior? Any ideas that can help to the poor creature (me) to avoid sleepless nights?

post-15502-0-29248800-1414139001_thumb.p

Edited by _Y_

Share this post


Link to post
Share on other sites

By "no timeout" you mean the enqueue element doesn't exit after 30s?

 

Yes, it does not exit after 30s or even after lunch. :frusty:

Share this post


Link to post
Share on other sites

To me this is not a race condition. A race condition would for example cause the dequeue function to be called before the enqueue function while you intended otherwise. But the fact that a function doesn't time out while it's supposed to is a bigger issue...

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.