Jump to content

DVR problems in startup


Recommended Posts

Hi all.

I have a strange problem with data value references.

I have an object, that stores its values in a hash (variant), and that hash is in a data value reference.

There are two threads, and each one of them has a copy of this object. In one thread I am adding stuff to the hash, and in the other I am accessing it. Each thread accesses the DVR in lock-action-unlock manner, so no thread is locking the DVR for a long period of time.

This is what happens:

thread 1: add to hash 07:55:45,255265

thread 1: add to hash 07:55:46,803353

thread 2: hash.size=2 07:55:57,504966

thread 1: add to hash 07:56:00,908160

thread 1: add to hash 07:56:00,972164

thread 2: hash.size=4 07:56:00,967164

The last two are out of order, but that's because I am logging the addition some time after the fact.

So, it seems that after the app is running for a while, the "DVR sync" is working the way it should, but at the start it takes 11 seconds for it to happen.

Is there a way to make it fast at the start as well? Some sort of "flush" maybe?

Thanks and br, Mike

Link to comment

Join the conversation

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

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
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.

×
×
  • Create New...

Important Information

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