Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Threads and fork and CLONE, oh my!

by xdg (Monsignor)
on Aug 12, 2005 at 01:24 UTC ( [id://483162]=perlmeditation: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    # A thread-safe inside-out object class
    package SafeObject;
    ...
    }
    
    1; # package must return true
    
  2. or download this
    #!/usr/bin/perl
    use strict;
    ...
    );
    $thr->join;
    is( $safe_obj->name(), "Charlie", "main thread still has original name
    +" );
    
  3. or download this
    #!/usr/bin/perl
    use strict;
    ...
    Test::More->builder->current_test( 6 );
    
    is( $obj->name(), "Charlie", "parent still has original name" );
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlmeditation [id://483162]
Approved by itub
Front-paged by Old_Gray_Bear
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (5)
As of 2024-03-29 10:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found