http://www.perlmonks.org?node_id=1010932


in reply to Re: How to share complex data structure in threads ?
in thread How to share complex data structure in threads ?

Thanks for introducing POE. Looking at the interface and which looks really relative to what I may found useful for. Though, I am no doing an online game ( i would consider blender + python if needed ), it just easier for me to explain why I need a complex struct shared by threads. The real project is kind of bio-logic stuff ( and I know nothing about it! ) I possibly to do some work to simulate a "brain" like stuffs but the scope is not yet confirmed.

All I know is I have to listen to certain range of ports, and signals come in, and the data struct will be altered, after `some external calls` returns values list. The ends up result maybe some like aaatttggg(they said it's protein or sort of) which is totally meaningless for me.. and I don't know how to express any further.. haha!

So up to this stage, all I am looking for is how to share a complex struct which read/write possible, and start to listen on advise for which approach ( queue / struct ) would be more suitable in such data structure scenario.

Do you have any "See Also" suggestion like POE ? Thanks again! =)