- or download this
my $default= {
stackBytes => 4*1024,
...
@$self{ keys %$opts }= values %$opts;
return $self;
}
- or download this
my $threads= threads->new( {
stackBytes => 16*1024, # default
...
);
$threads->setStackBytes( ... );
my @hive= map $threads->create( ... ), ...;
- or download this
my $threadFactory= use threads;
- or download this
require threads;
...
my $child= threads->create( \&mySsub );
- or download this
require threads;
my $threads= threads->new( {
stackBytes => ...,
} );
- or download this
use threads(
Factory => \my $threads,
StackBytes => ...,
);