I have a Flask application running under mod_wsgi that makes a connection to a database. There are multiple processes running this application (only one thread per process)
Regarding sharing state between wsgi threads, there is a directive you can put in the apache virtual host configuration that allows them to be executed in the same context.
The WSGIApplicationGroup directive can be used to specify which application group a WSGI application or set of WSGI applications belongs to. All WSGI applications within the same application group will execute within the context of the same Python sub interpreter of the process handling the request.
Note that this is for threads within a process, not between processes.