Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
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.


Comment on Re^5: Parallel Computation

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (9)
As of 2014-08-28 09:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (259 votes), past polls