Re: basic example shared memory code

2011-11-23 Thread Oğuzhan TOPGÜL
When i delete exit(1), nothing has changed but when i commented out all the mutexes it works, counter is working well. That's great. :) that means shared memory is working well. in terms of mutexes i need to create mutex in post config in handler 1. lock mutex 2. process global variable 3. unlcok

Re: basic example shared memory code

2011-11-22 Thread MATSUMOTO Ryosuke
mod_vlimit https://modules.apache.org/search.php?id=2570 This module count a number of simultaneous connections on shared memory. 2011/11/22 michaelr my...@freenet.de: On Tue, 2011-11-22 at 11:26 +0200, Oğuzhan TOPGÜL wrote: Hi guys, I'm trying to learn shared memory and mutex concepts and i

Re: basic example shared memory code

2011-11-22 Thread Nick Kew
On 22 Nov 2011, at 09:26, Oğuzhan TOPGÜL wrote: Hi guys, I'm trying to learn shared memory and mutex concepts and i need an example shared memory apache module code that was written in c. If you're planning to write a module, bear in mind that apache now provides easy-to-use higher-level

Re: basic example shared memory code

2011-11-22 Thread Nick Kew
On Tue, 22 Nov 2011 09:41:02 -0500 Pranesh Vadhirajan vadhira...@teralogics.com wrote: Nick, can you suggest some of these higher-level abstractions, please? I have been trying to make a module of mine work with a POSIX shared memory implementation, but I'm going nowhere with that. Are you

Re: basic example shared memory code

2011-11-22 Thread Oğuzhan TOPGÜL
hey guys, i'm in terrible with these shared memory. I tried to write a basic module by looking at the examples that basic module just holds a counter and prints it to the client. when i compile the code attached, i got no error messages. But in apache error.log file i got lots of [notice] child