LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   apache module: how to use shared memory between calls? (https://www.linuxquestions.org/questions/programming-9/apache-module-how-to-use-shared-memory-between-calls-4175420707/)

eantoranz 08-06-2012 04:56 PM

apache module: how to use shared memory between calls?
 
Hi!

I'm hacking php (the interpreter) to load php files from memory. I noticed that I'm doing the "loading stuff into memory" for every request I make and I'd like to do it only once while apache is running (the first time a request arrives and then I could reuse this stuff for later calls).

I tried setting the stuff I need as "static" in the c code but it's still not shared between calls. What's the right way to do it?

Thanks in advance.

NevemTeve 08-08-2012 02:42 AM

You might try using shared memories.

eantoranz 08-08-2012 08:52 AM

I was wondering if apache's API provided a mechanism for sharing memory.


All times are GMT -5. The time now is 12:55 AM.