in reply to Share symbol table between threads
Using the standard threads distributed with Perl 5.8.x:
Someone (I think renodino), has mentioned that he has (or is working on) a module that allows you to share objects across threads. I am unsure of the details of how this works or if it requires require in all sharing threads. Doing a supersearch for "shared objects" may turn up the appropriate threads and further information.
Be wary of using any modules in the Thread::* namespace. Some (like Thread::Queue) are just fine in conjunction with threads. Some others are remnents from perl5005 threads and do not work with threads. Still others attempted to bridge the transition from 5005threads to ithreads in the early days of ithreads and never quite got finished.
Unfortunately, there is no way apart from trial and error to work out which modules fall into which category. I sorely wish that the entire Thread::* namespace would be dropped or deprecated and any ithreads-capable modules would be moved into the threads;:* namespace--but I doubt it will ever happen.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Share symbol table between threads
by renodino (Curate) on Oct 04, 2006 at 15:08 UTC |