Hey thanks for that. I'll have to work my way through your code example sometime shortly, but as per usual there are other fires I have to put out short term.

I had found the potential deadlock while waiting for some responses, but rather than confuse the current issue I decided to let it be. That's my story, and I'm sticking to it :)

The main reason I went with the concept of an object was to be able to instantiate an object that would encapsulate all this potential blocking from a test script. As the test requires approximately 30 different potentially blocking processes of the same type running simultaneously, your OO instincts about limiting the usage of the class to one object were entirely correct. I'm a contractor first and purist second, so I wouldn't have invested the time to learn about Perl Objects on someone elses time (and money) unless the task at hand required it.

Hopefully I've learned as much as you did. Many thanks for the time spent.
Mike.


In reply to Re: Re: Containing threads in object instances (it can be done) (long post). by tid
in thread Containing threads in object instances by tid

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.