Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

How to create a multiple threads on a function ?
i have a variable like
my $thrcount=getValueFromPath($testcase,"TestCase/TCount");
which returns a count from an xml , which is loaded in $testcase.
i want create $thrcount of threads on a function called putdata.
sub putData { ...... ...... }

How to create Multiple threads on this function which are equal to $thr count ?

Replies are listed 'Best First'.
Re: Creation of Multiple threads
by Corion (Patriarch) on Apr 14, 2009 at 09:04 UTC

    What part of the threads API do you have a problem with? It shows how to create one thread - maybe you need to do that in a loop?