in reply to Some issues using Thread::Queue

What happens if you change this: $Qs[0]->limit = $qsize; to this: $Qs[0]->limit = $T * 200;?


With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority". The enemy of (IT) success is complexity.
In the absence of evidence, opinion is indistinguishable from prejudice.

Replies are listed 'Best First'.
Re^2: Some issues using Thread::Queue
by BrowserUk (Patriarch) on Dec 09, 2016 at 01:41 UTC
    Did this fix your problem?

      Dear BrowserUk it didn'work. In fact now it processes less lines than before.
      Any other idea ?? perhaps you can sugest some prints for debuging ?
      Regards;
      Leo.

        Hi leostereo,

        Have you tried running a recent version of Thread::Queue? The 3.12 release addresses a deadlock issue.

        3.12 Thu Feb 9 18:42:45 2017 - Fix deadlock caused by combination of dequeue_nb, enqueue and queue size limit (Bug #120157 - fix by Chad Fox) - Prevent calling dequeue methods with COUNT > LIMIT

        There was another fix prior to that.

        3.07 Fri Oct 23 23:54:18 2015 - Edge-case fix to queue limit feature

        This will output the version.

        perl -MThread::Queue -le "print Thread::Queue->VERSION"

        Regards, Mario