in reply to Re^12: baton passing threads and cond_signal
in thread baton passing threads and cond_signal

Fair do's ike {.oO(I hope that abbrev is endearing and not insulting)}. I have an axe to grind here in that I think that the pthreads APIs are broken, hence my following along on this thread.

If the OP doesn't raise another root level post to clarify the problem, I will.


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".
In the absence of evidence, opinion is indistinguishable from prejudice.
"Too many [] have been sedated by an oppressive environment of political correctness and risk aversion."
  • Comment on Re^13: baton passing threads and cond_signal

Replies are listed 'Best First'.
Re^14: baton passing threads and cond_signal
by Joost (Canon) on Aug 23, 2007 at 21:07 UTC
    If there are problems with pthreads (which I guess perl/windows does not use, but I may be wrong) I would be interested, so go ahead an post away :-)

    I've got some other issues with perl threads (I mean, the perl API to threads, not the actual implementation - I don't know enough about that) so maybe I should take some time to write them down too.

      The first problem is that I've been playing with the cond_* apis for quite a while now and basically, they do not seem to work properly. As best as I can assertain. But there are precious few examples of their use (from Perl) as far as I can find.

      The second problem is that I am using emulations of those APIs rather than the real thing, so it's not clear to me whether the problems I have had are down to the APIs themselves, the Win32 emulations, or just the sparsity of documentation and my (lack of) understanding of how to use them.

      The piece of the OPs puzzle that is still missing is: does the hang that occurs on single-cpu Win32 also happen on single-cpu Linux? Conversely, does the hang not happen on multi-cpu Win32?


      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".
      In the absence of evidence, opinion is indistinguishable from prejudice.