It's any blocking operation on a shared resource.

WTF? Even if it's not the only thing that blocks thread creation doesn't mean preclude it from being one of the things that blocks thread creation.

And that operation doesn't "obtain a lock", it enters a mutex.

WTF? You of all people should know they're the same thing. "A mutex is also a common name for a program object that negotiates mutual exclusion among threads, also called a lock."

The "other operation" in this case is CLONE, not thread creation.

WTF? The clone is part of the thread creation. So if the clone blocks, thread creation blocks too.

it isn't a bug, nor limitation, nor caveat--it is a requirement--implemented correctly and WAD.

I agree that it's not a bug, but you're wrong on the other two.

It's definitely a limitation. The OP's code didn't work.

The behaviour of a program can never be caveat any more than it can be blue, so that's a weird thing to list.


In reply to Re^13: threads on Windows by ikegami
in thread threads on Windows by kennethk

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.