Help for this page

Select Code to Download


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