Help for this page

Select Code to Download


  1. or download this
    #I try to put in queue my record
    use threads;
    ...
    print "1 : ".$r->{'1'}; 
    print "2: ".$r->{'2'};
    
  2. or download this
    #test for sharing queue between threads
    use threads;
    ...
    $th1->join;
    $th2->join;