Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

sky (1411)

  (email not shown publicly)

sky on IRC

Journal of sky (1411)

Tuesday September 04, 2001
03:03 AM

Threading troubles

[ #749 ]
Perldate #11854

I am having random troubles with threading on random platforms. It works well on single CPU machines. It fails badly on multiple CPU machines. Now this is usually the case with multithreaded programs. Now you have to identify the assumptions in your code that might break things. This is relativly easy when you have written code yourself, but next to impossible if you haven't. And debuggin threaded applications is not trivial, since if you slow it down with debugging information, you usually end up with something running correctly. Remeber, god is involved in how your threads are scheduled :)

What is left to do now is.

  1. Sharedsv is broken
  2. perlio is not threadsafe
  3. I believe there is a bug in the cloning of anonymous uncloned subroutines

So now I have to fix that. Lets move on!