in reply to Parallel Computation
I am not sure perl is really best environment for such play, since its threads are quite heavy-weight and have quite a cost for shared data (which are essential here). But for experiments you can build number of threads (like for each digit) and wait until less-significant digit thread provide its carry.
EDIT: You can also use library like Coro for lighter cooperative threads.
-- Roman
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Parallel Computation
by Anonymous Monk on Nov 16, 2010 at 18:36 UTC |