in reply to Multi threading

What error message do you get if you call your thread procedure as a simple function?

Ie. Instead of:

my $thr = threads->new( \&worker, ... );

Do, (temporarily)

worker( ... );

Threaded programmers rule 1: When you've sorted out the bugs in your code when running it single threaded, it is an awful lot easier to get it to run multi-threaded.


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.