Help for this page

Select Code to Download


  1. or download this
    use threads;
    use test;
    ...
    my $thread=threads->create("forthread", ($argument));
    $thread->join();
    exit(0);
    
  2. or download this
    package test;
     
    ...
            my ($arg)=@_;
            return 0;
    } #forthread
    
  3. or download this
    use threads;
    use test;
    ...
    my $thread=threads->create("forthread", (argument));
    $thread->join();
    exit(0);
    
  4. or download this
    package test;
     
    ...
    sub another{
    return 0;
    } #another