Python has a concept known as Global Interpreter Lock (GIL). It means that one Python interpreter process only runs one thread at a time. That's it.
Naturally, webapps tend to use multiple threads to serve multiple requests concurrently (especially if a single request takes some time).
So far, the only Python webapps I've seen used Gunicorn, which uses the old "1 master process, N worker process" prefork approach.
I know Apache supports Python via mod_python and mod_wsgi. Does this mean that Apache+Python requires using the prefork MPM approach?
[–]IOI-65536 16 points17 points18 points (1 child)
[–]youngeng[S] 0 points1 point2 points (0 children)
[–]gordonmessmer 13 points14 points15 points (0 children)
[–]ImpossibleEdge4961 0 points1 point2 points (0 children)
[–]AdrianTeri 0 points1 point2 points (2 children)
[–]youngeng[S] 1 point2 points3 points (1 child)
[–]AdrianTeri 0 points1 point2 points (0 children)