httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tikka, Sami" <>
Subject RE: Global variables in self-written Module for Apache 2
Date Thu, 01 Apr 2004 08:02:21 GMT
>-----Original Message-----
>From: Werner Schalk [] 
>or do I have to use something like shared memory?

Yes. On apache running on unix there is a very good chance you are actually
running multiple *processes* and as we remember from university operating
system courses, processes have separate address spaces.

You choices: 

1) Run worker mpm configured so it only starts one process. It can be done
but it is not usually recommended because separate processes make for better

2) Store shared data into shared memory. Look up the apr_shm_* functions in
APR library.

View raw message