As Graham explained to me once each process has a different Python interpreter but the threads under each process uses the same interpreter. So you should not be able to persist data between processes as I understand it. If you need to persist data you could use something like mmap.
~Carl On Fri, Feb 12, 2010 at 10:09 AM, till amon <[email protected]> wrote: > Hello all, > and apologies upfront for going to be vague. > > i'm toying with mod_wsgi for a couple of days now and still am > somewhat struck when it comes to threading semantics - especially how > to share state between processes. > > the current setup is like this : > WSGIDaemonProcess daemon_group processes=1 threads=15 > > Which is working fine as long as there is only one process. > now to the vague part : if one wants to have other processes serving > different scripts , what would be the cleanest way to share state > among them if responsiveness was the main concern ? > > (starting a 16th thread to wait for a unix pipe or socket does not > seem to work - by design i guess ? ) > > -- > You received this message because you are subscribed to the Google Groups > "modwsgi" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/modwsgi?hl=en. > > -- ------------------------------------------------------------------------------- Carl J. Nobile (Software Engineer) [email protected] ------------------------------------------------------------------------------- -- You received this message because you are subscribed to the Google Groups "modwsgi" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/modwsgi?hl=en.
