Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^5: Parallel Computation

by chrestomanci (Priest)
on Nov 18, 2010 at 10:58 UTC ( #872196=note: print w/replies, xml ) Need Help??


in reply to Re^4: Parallel Computation
in thread Parallel Computation

I apologise

The value passed to $fork_mgr->start() can be used to uniquely identify the thread, and it comes back as $child_id in the subroutine defined in $fork_mgr->run_on_finish()

Given that ID, you can reconcile the work done by the worker threads. In the past I have used that ID for an array index into the array of work to be done, A string that uniquely identifies the work, or the primary key of a database row.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://872196]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (6)
As of 2018-06-18 08:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?



    Results (109 votes). Check out past polls.

    Notices?