in reply to Re: Share symbol table between threads
in thread Share symbol table between threads
1. The client then need to ``register'' itself on the server first, which a thread A on server should ``require'' the module.
2. The client then use the returned stub to call a method (through AUTOLOAD). A nother thread B on server should then make the actuall call.
Currently I can only put ``require'' and actual call both in thread B to load the module and let the symbol available.
What I tent to is load it once at thread A, so following methods calls won't repeately load it again.
I have also come up with an idea that by keeping my own shared HASH symbol table at the main thread, and use AUTOLOAD to point it when necessary. But will it achieveable? or would it make performance better? I don't know.
Thanks
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Share symbol table between threads
by jbert (Priest) on Oct 04, 2006 at 12:26 UTC | |
by jwu (Novice) on Oct 04, 2006 at 13:22 UTC |