-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Pavel Ivanov wrote:
> I'm curious: with all these "warnings based on science" how would you
> implement application similar to apache web-server 

The danger with threading is in concurrent access to data.  Apache has
several different modes of operation (forking etc) but in the one that
uses threading, each thread handles a connection and does not handle or
share any data with other threads during its operation on that
connection.  For the non-Windows worker (MPM) it also uses multiple
processes with multiple threads and the processes exit after handling a
certain number of requests.

As an example you can read about mod_wsgi which provides for running
Python code as though it was CGI - see http://code.google.com/p/modwsgi/

Roger
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAkn58/MACgkQmOOfHg372QSoOQCfXvz8ef7vS0HP/Uc9hZ/1BQSO
Cw0AoMXzgpNwO0PA5uMBvG/DB2Y3lKHG
=Cage
-----END PGP SIGNATURE-----
_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to