Daniel Poelzleithner wrote:
> Yes i know. There would be other solutions like shm, or global mutexes,

In fact those two don't seem to work for this situation anyway. I was 
digging this whole field over a month ago and remember that the main 
problem is that to use anything shared in memory you should control 
forking of your processes. But here a web server does this before you 
have a chance to execute your code. I also vaguely remember a discussion 
in the mod_python list about providing some API to control these things 
in Apache.

> However, on a apache
> with worker mpm, thread locks are definitive the best choice and allow
> easy usage of Semaphores etc, too.

I'm not sure but I always thought that even under worker mpm Apache 
still can use several children with threads, not only one. So any 
thread-level locks wouldn't work here also. But this is just my 
speculation I didn't check properly.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to