in reply to Help !! problems sharing a nested hash across threads

stevehicks:

I had this same problem a little while ago. The problem is that each of the hash elements is a variable, so each element in the hash must be shared--you can't simply share the top level of the hash to share all the items inside it. I can't tell you a simple way around this, though. I switched strategies for my problem and simplified the data structure so I didn't have to try to manage the housekeeping of sharing all the hash elements.

...roboticus

  • Comment on Re: Help !! problems sharing a nested hash across threads

Replies are listed 'Best First'.
Re^2: Help !! problems sharing a nested hash across threads
by stevehicks (Sexton) on Aug 18, 2010 at 14:06 UTC
    Hi I originally used a message queues to get the messages into the other thread however I then had to vacuum them up off the queue and stick them in the hashes prior to matching. It was an easy way to do it but didn't work too well when message rates reached 150 a second. There are no doubt other methods but using shared hashes seems like a good choice thanks : ) steve