Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^2: Child process inter communication

by marioroy (Prior)
on Jun 18, 2017 at 23:53 UTC ( [id://1193070]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $ diff hobo_test.pl threads_test.pl
    
    ...
    > threads->create(\&foo, $_) for @names;
    > $_->join() for threads->list();
    
  2. or download this
    use strict;
    use warnings;
    ...
    
    printf {*STDERR} "duration: %0.03f seconds\n", time - $start;
    
  3. or download this
    use strict;
    use warnings;
    ...
    
    printf {*STDERR} "duration: %0.03f seconds\n", time - $start;
    
  4. or download this
    # Mac OS X ( Perl v5.18.2 )
    
    ...
    duration:  3.020 seconds
       50000
    
  5. or download this
    # Windows ( Cygwin Perl v5.22.3 )
    
    ...
    $ perl foo4.pl > nul        # Thread::Queue
    duration:  2.886 seconds
    
  6. or download this
    # TrueOS 10.0 ( FreeBSD, Perl 5.16.3 )
    
    ...
    duration:  1.822 seconds
       50000
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1193070]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (6)
As of 2024-03-28 09:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found