develooper Front page | perl.perl5.porters | Postings from March 2003

5.8.1@19053: threads goofs

Thread Next
From:
Ilya Zakharevich
Date:
March 31, 2003 13:18
Subject:
5.8.1@19053: threads goofs
Message ID:
20030331211830.GA3737@math.berkeley.edu
[I already roported some of these on c.l.p.moderated.]

a) threads.xs does not check the result of pthread_create() call.
   This leads to numerous problems later, when the results of the
   thread run are expected.

b) A message is printed if one of the threads wants the process to
   end.  The message looks like

     A thread exited when ** other threads were running

   This is very confusing ("a thread exited"?  Should not they do this
   all the time?)  "called exit() or die()ed" should be more clear.

   Also, it does not help that the threads "created" as in (a) are
   included in the count above.

Hope this helps,
Ilya

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About