UpTide has asked for the wisdom of the Perl Monks concerning the following question:
So I was reading about threads, and I was wondering if/how I can send output from one thread to another thread? For example I have three threads (A, B, and C). I want to send the results of A to both B and C. B will do work on what it got from A then send that to C. Finally, C will now start work.
Any suggestions? I looked at threads::shared, but not all the data needs to be accessible from each thread. (such as how A doesn't need B's output to C)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Data Between Threads
by Corion (Patriarch) on Aug 17, 2016 at 14:39 UTC | |
|
Re: Data Between Threads
by BrowserUk (Patriarch) on Aug 17, 2016 at 15:14 UTC | |
by UpTide (Novice) on Aug 17, 2016 at 16:09 UTC | |
by BrowserUk (Patriarch) on Aug 17, 2016 at 16:16 UTC | |
by GotToBTru (Prior) on Aug 17, 2016 at 16:28 UTC | |
|
Re: Data Between Threads
by hippo (Archbishop) on Aug 17, 2016 at 14:45 UTC | |
|
Re: Data Between Threads
by Anonymous Monk on Aug 24, 2016 at 22:47 UTC | |
by marioroy (Prior) on Aug 24, 2016 at 23:01 UTC |