httpd-modules-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christiaan Lamprecht" <christiaanw...@googlemail.com>
Subject Interprocess read/write locks
Date Mon, 05 Feb 2007 15:44:16 GMT
Last Nov 22 I asked a question about writable shared memory,
everything's working now so thanks!

Locking the shared memory is turning out to be quite costly. I have
many shared-memory readers and only a few writers so using a rwlock
seems appropriate but APR provides only apr_thread_rwlock routines.

Is there a way to use rwlocks between processes rather than threads?
Maybe using the standard POSIX pthread_rwlock routines (storing the
lock in the shm space...)?

Many thanks again
Christiaan

PS:
Apache 2 on Linux
apr_shm (for shared memory)
prefork MPM (it's non threaded!)

Mime
View raw message