Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much

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?

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (2)
As of 2015-11-27 01:17 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (711 votes), past polls