in reply to sharing a complex set of objects between httpd processes
There are two pieces of good news though. The first is that there are ways of sharing data that are very fast, like IPC::MM and Cache::Mmap, despite all the machinery. The second is that you probably don't need to do this at all. If you create things before the fork in startup.pl, each child process will get a copy. If you need to share data, you have the above-mentioned methods and your RDBMS. If you need to coordinate access to some shared resource, you can do locking in various ways.
If you explain why you think you need a singleton, we might be able to offer more specific advice about what to do.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: sharing a complex set of objects between httpd processes
by thpfft (Chaplain) on Mar 15, 2003 at 03:29 UTC | |
by perrin (Chancellor) on Mar 16, 2003 at 19:41 UTC |